find_linked_edges {Claddis} | R Documentation |
Given a tree finds edges that are linked to each other.
find_linked_edges(tree)
tree |
A tree (phylo object). |
Finds all edges that link (share a node) with each edge of a tree.
This is intended as an internal function, but may be of use to someone else.
Returns a matrix where links are scored 1 and everything else 0. The diagonal is left as zero.
Graeme T. Lloyd graemetlloyd@gmail.com
# Create a simple four-taxon tree: tree <- ape::read.tree(text = "(A,(B,(C,D)));") # Find linked (1) edges matrix for tree: find_linked_edges(tree)