Shortest path in a graph

A–B 4, A–C 1, C–B 2 → shortest path from A to B = 3

You can also choose a level by clicking its number.

About the course

Description
Length of the shortest path in a weighted graph (Dijkstra's algorithm)
More information
A graph consists of vertices and the edges between them. A tree is a connected graph without cycles.
Sample question
A–B 4, A–C 1, C–B 2 → shortest path from A to B = 3
Author
Jiří Preisler
Version
1.0