Description Usage Arguments Details Value Author(s) See Also Examples
Given a graph, g
, and a set of nodes in the graph,
whNodes
, Dijkstra's shortest path algorithm is used to compute
the distance between all pairs of nodes in whNodes
.
1 |
g |
An instance of the |
whNodes |
A vector of lables of the nodes in |
verbose |
If |
This function can be quite slow, computation of the pairwise
distances is not especially fast and if whNodes
is long then
there are many of them to compute.
A matrix containing the pairwise distances. It might be worth making
this an instance of the dist
class at some point.
R. Gentleman
1 2 | example(compCorrGraph)
compGdist(corrG, nodes(corrG)[1:5])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.