prune¶
- SeparatorTree.prune(*, nd_oksep=None, nd_small=None)[source]¶
Prune the separator tree.
- Parameters:
nd_oksep (double in [0, 1], optional) – Controls when a separator is kept. A separator is kept if
nsep < nd_oksep * n, wherensepis the number of nodes in the separator andnis the number of nodes in the graph being cut (default is 1.0).nd_small (int >= 0, optional) – The smallest subgraph that should not be partitioned (default is 200).
- Returns:
pruned_septree (SeparatorTree) – The pruned separator tree.
cpwill be of lengthC', whereC' <= Cis the number of components remaining after pruning.
Notes
This function is based on the SuiteSparse CHOLMOD MATLAB interface [1].
References