A named list with the following elements:
successLogical, indicating whether model fitting succeeded. If FALSE
, the returned list will include an additional ``error'' element (character) providing a description of the error; in that case all other return variables may be undefined.
NsplitsThe maximum number of children of any node in the tree. For strictly bifurcating trees this will be 2.
clades2D integer matrix of size Nclades x (Nsplits+1), with every row representing a specific tip/node in the tree. If postorder==FALSE
, then rows are in the same order as tips/nodes in the original tree, otherwise nodes (but not tips) will be re-ordered and re-indexed in postorder fashion, with the root being the last row. The first column lists the parent node index, the remaining columns list the child tip/node indices. For the root, the parent index will be set to missing_value
; for the tips, the child indices will be set to missing_value
. For nodes with fewer than Nsplits children, superfluous column entries will also be missing_value
.
lengthsNumeric vector of size Nclades, listing the lengths of the incoming edges at each tip/node in clades
. For the root, the value will be missing_value
. If the tree's edge_length
was NULL
, then lengths
will be NULL
as well.
old2new_cladeInteger vector of size Nclades, mapping old tip/node indices to tip/node indices in the returned clades
and lengths
arrays. If postorder==FALSE
, this will simply be c(1:Nclades)
.