Description Usage Arguments Value Examples
View source: R/compute_shortest.R
shortest
routine is an implementation of Floyd-Warshall algorithm to find
the shortest path between N nodes for a given graph. For simplicity, this function
only accepts a symmetric network of \lbrace 0, 1 \rbrace binary edges.
1 | shortest(graph)
|
graph |
one of the followings; (1) an |
an (N\times N) matrix of pairwise shortest path distances.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.