Measures#

phypanda provides three diversity measures, each available as a module-level singleton (pp.all_paths, pp.max_tree, pp.min_tree). All implement the DiversityMeasure protocol. Stubs that raise NotImplementedError exist for pp.tree, pp.network, and pp.average_tree.

Measure

Description

Fixed-set scoring

Budgeted optimization

All-paths PD (MAPPD)

All-paths diversity (MAPD) — edges on any root-to-leaf path

yes

yes (nsw_fpt_budget, esw_fpt)

Max-tree PD

Max PD over all displayed trees — upper bound on network PD

not yet

yes (nsw_fpt)

Min-tree PD

Min PD over all displayed trees — lower bound on network PD

yes

not yet

Tree PD (stub), Network PD (stub), Average-tree PD (stub)

Standard tree PD and other objectives (stubs)

not yet

not yet