test/examples/calculate_shortest_path.rb
# This method does a simple traversal of the data structures (following pathTo)
# to build the directed traversal vector for the minimum path
This method does a simple traversal of the data structures (following pathTo)
to build the directed traversal vector for the minimum path
This method does a simple traversal of the data structures ( following pathTo ) to build the directed traversal vector for the minimum path
def save_path(pathVector)
    node = destination
    begin
      pathVector << node
      node = pathTo[node]
    end while node != nil
  end
def save_path ( pathVector ) node = destination begin pathVector << node node = pathTo [ node ] end while node != nil end
This method does a simple traversal of the data structures (following pathTo)
to build the directed traversal vector for the minimum path
This method does a simple traversal of the data structures ( following pathTo ) to build the directed traversal vector for the minimum path
pathVector