Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shortest Path of a Graph

Status
Not open for further replies.

Cirilia

Programmer
Mar 10, 2003
16
0
0
US
Hi I have a graph with vertices and weights like so:

Atlanta -> Dallas 500
Boston -> Atlanta 600 Chicago 200
Chicago -> Boston 800

If there is no connection between two nodes the value is 5000. What is the easiest way to implement a shortest path algorithm on this type of data?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top