Exception: Trainworks::GraphAlgorithm::NoSuchRoute

Inherits:
KeyError
  • Object
show all
Defined in:
lib/trainworks/graph_algorithm.rb

Overview

NoSuchRoute is raised when there are no direct connection between two cities (nodes)

Instance Method Summary collapse

Instance Method Details

#to_sObject



122
123
124
# File 'lib/trainworks/graph_algorithm.rb', line 122

def to_s
  'NO SUCH ROUTE'
end