Skip to content

beijifeng02/STA303-Assignment03

 
 

Repository files navigation

Assignment3: Find the shortest path in underground lines

File Description

How to visualize the map and path

  • To draw a map of the London Underground route:
python plot_underground_lines.py

and open London_railway.html to view it.

  • To draw path on the map, such as ['Acton Town', 'Chiswick Park', 'Turnham Green', 'Stamford Brook']:
python plot_underground_path.py

Then, you can open my_path_in_London_railway.html to view it.

Assignment3 Requirements

  • Implement the function get_path() in find_shortest_path.py.
  • After implementation, you can visualize the shortest path at a given starting and ending station, by running the following command:
python find_shortest_path.py  "Acton Town"  "Turnham Green"

The above example specifies the path from Acton Town to Turnham Green.

(Note: If there are blank space in the station name, station name need to be wrapped in double quotation marks("") in the command line.)

Then, open visualization_underground/my_shortest_path_in_London_railway.html to view the path.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 99.6%
  • Other 0.4%