shortestPath-methods
Finds the shortest path between two nodes in a tree
shortestPath(x, node1, node2) ## S4 method for signature 'phylo4' shortestPath(x, node1, node2) ## S4 method for signature 'phylo' shortestPath(x, node1, node2)
x |
a tree in the phylo4, phylo4d or phylo format |
node1 |
a numeric or character (passed to |
node2 |
a numeric or character (passed to |
Given two nodes (i.e, tips or internal nodes), this function
returns the shortest path between them (excluding node1
and
node2
as a vector of nodes.
a vector of nodes indcating the shortest path between 2 nodes
getNode
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.