Description Usage Arguments Value References Examples
It is an algorithm used for finding the shortest path from a single node to a single destination node by stopping the algorithm onc e the shortest path to the destination node has been determined.
1 | dijkstra(graph, init_node)
|
graph |
A data frame. |
init_node |
A number. |
The vector of the shortest path to every other node from the starting node.
1 2 | dijkstra(wiki_graph, 1)
dijkstra(wiki_graph, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.