maximal_tangles#
- TangleSearchTree.maximal_tangles(agreement: int = 1, max_level: int | None = None, include_splitting: str = 'nope')#
Return all maximal tangles of at least the specified agreement and level at most max_level.
Guaranteed to return every tangle (on the set of sep ids the sweep knows about) if the limit is below the specified agreement.
Parameters#
- agreementint
All tangles of at least this agreement value are returned.
- max_levelint, optional
Only return tangles with level below or equal max_level.
- include_splitting: {“nope”, “nodes”, “levels”}
If equal to “nodes” all nodes which distinguish two maximal tangles are included. If equal to “levels” all nodes on a path to a maximal tangle at levels that contain a distinguishing node are included. Defaults to “nope”.
Returns#
- list
The maximal tangles.