Examples (4)
Compute distances from a given source node in a graph file
dijkstra source_node_fileTreat the graph as [d]irected when computing distances
dijkstra -d source_node_fileRecord 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_filemade by @shridhargupta | data from tldr-pages