Description Usage Arguments Value References
This algorithm caculates the shortest distance between initial node and all the other nodes and saves the result into a vector.
1 | dijkstra(graph, init_node)
|
graph |
A dataframe with 3 variables v1, v2 and w ie edges of the graph from v1 to v2 with weight w. |
init_node |
A number which is considered to be the initial point. |
The shortest distance from init_node
to all other nodes in the graph.
https://en.wikipedia.org/wiki/Dijkstra
https://en.wikipedia.org/wiki/Graph#Mathematics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.