AllSPR {TreeSearch} | R Documentation |
All SPR trees
Description
All SPR trees
Usage
AllSPR(parent, child, nEdge, notDuplicateRoot, edgeToBreak)
Arguments
parent |
Integer vector corresponding to the first column of the edge
matrix of a tree of class |
child |
Integer vector corresponding to the second column of the edge
matrix of a tree of class |
nEdge |
integer specifying the number of edges of a tree of class |
notDuplicateRoot |
logical vector of length |
edgeToBreak |
(optional) integer specifying the index of an edge to bisect/prune,
generated randomly if not specified.
Alternatively, set to |
Value
AllSPR()
returns a list of edge matrices for all trees one SPR
rearrangement from the starting tree
Author(s)
Martin R. Smith