Description Usage Arguments Value References Examples
The Dijkstra
algorithm calculates the shortest path of a graph with an initial node.
1 | dijkstra(graph, init_node)
|
graph |
a graph as data frame. |
init_node |
the initial node. |
The shortest path of graph
with the initial node init_node
https://en.wikipedia.org/wiki/Dijkstra
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.