GraphGeodesic: Graph Geodesic between leaves of unweighted tree

Description Usage Arguments Value Author(s) Examples

Description

Graph Geodesic between leaves of unweighted tree

Usage

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)

Arguments

x

Object of class phylo.

nTip

Integer specifying number of leaves.

asMatrix

Logical specifying whether to coerce output to matrix format.

Value

GraphGeodesic() returns an unnamed integer matrix describing the number of edges between each pair of edges.

Author(s)

Martin R. Smith, modifying algorithm by Emmanuel Paradis in ape::dist.nodes().

Examples

1
GraphGeodesic(TreeTools::BalancedTree(5))

Rogue documentation built on Jan. 13, 2022, 5:07 p.m.