| shortest.path | R Documentation |
Computes Shortest Path Distances for Selected Vertices
shortest.path(graph, edge.lengths, vertices)
graph |
A graph adjacency list using 1-based vertex indices. |
edge.lengths |
Edge-length list matching |
vertices |
Integer vector of vertices for which to compute distances. |
A numeric matrix of shortest-path distances.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.