mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 19:38:56 +08:00
1f9c7ae9c3
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Lena Pastwa <126529524+acuteenvy@users.noreply.github.com>
540 B
540 B
dijkstra
Compute shortest-path distances from a single source node in a graph. More information: https://graphviz.org/pdf/dijkstra.1.pdf.
- Compute distances from a given source node in a graph file:
dijkstra {{source_node_file}}
- Treat the graph as [d]irected when computing distances:
dijkstra -d {{source_node_file}}
- Record the [p]revious closest node for each node on the shortest path:
dijkstra -p {{source_node_file}}
- [a]ssign large distance values to unreachable nodes:
dijkstra -a {{source_node_file}}