1
IVertexAndEdgeListGraph<TVertex, TEdge> graph = ...;
2
Func<TEdge,
double
> edgeCost = e => 1;
// constant cost
3
TVertex root = ...;
4
// compute shortest paths
5
TryFunc<TVertex, TEdge> tryGetPaths = graph.ShortestPathDijkstra(edgeCost, root);