Description Usage Arguments Value
Find the shortest paths to other vertices
1 | dijkstra_nodes(dist, src, node_costs)
|
dist |
A matrix of distances between nodes |
src |
An integer vertex ID |
node_costs |
a list of costs, in order, of all nodes represented in the sociomatrix, all are assumed 0 if unspecified |
A numeric vector, entry i of which is the vertex immediately preceeding vertex i in the shortest path leading to i. Full paths must be constructed recursively.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.