Description Usage Arguments Value Author(s) Examples
Graph Geodesic between leaves of unweighted tree
1 2 3 | GraphGeodesic(x, nTip = length(x$tip.label), log = FALSE, asMatrix = TRUE)
Cophenetic(x, nTip = length(x$tip.label), log = FALSE, asMatrix = TRUE)
|
x |
Object of class |
nTip |
Integer specifying number of leaves. |
asMatrix |
Logical specifying whether to coerce output to matrix format. |
GraphGeodesic()
returns an unnamed integer matrix describing the
number of edges between each pair of edges.
Martin R. Smith, modifying algorithm by Emmanuel Paradis
in ape::dist.nodes()
.
1 | GraphGeodesic(TreeTools::BalancedTree(5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.