Constraints¶

class Constraints(taxNames, constraintTree)

A container for tree topology constraints.

taxNames
A list of taxNames in the same order as in the data or alignment, and the same order as in other tree or trees objects.
constraintTree
A partially resolved tree object that describes the constraints. You need to include all the taxNames.

For example:

tNames = ['A', 'B', 'C', 'D', 'E']

dump()