Skip to content

collapseBySupport

function collapseBySupport(tree, threshold): Tree;

Defined in: packages/components/src/components/PhyloTree/utils/treeOps.ts:106

A new tree in which every internal node whose support value (its numeric name) is below threshold is dissolved into its parent — a polytomy — with its branch length added to each of its children’s. The root, leaves, and nodes without a numeric name are kept. Returns tree itself when nothing is below the threshold.

Parameter Type
tree Tree
threshold number

Tree