In an unweighted, undirected connected graph, the shortest path from a node S
to every other node is computed most efficiently, in terms of time complexity, by
- ADijkstra's algorithm starting from S.
- BWarshall's algorithm
- CPerforming a DFS starting from S.
- DPerforming a BFS starting from S.