UncrossingSweep#
- class tangles.UncrossingSweep(sep_sys: SetSeparationSystemBase, order_func: Callable[[ndarray], ndarray], forbidden_tuple_size: int = 3, copy_sep_sys: bool = True)#
A
TangleSweep
wrapped with uncrossing functionality.Whenever tangles are searched, the
UncrossingSweep
ensures that the efficient distinguishers in theTangleSearchTree
are uncrossed. This is a necessary condition to create a tangle search tree.Additionally, objects of this class hold an ordered separation system, so also some convenient separation system functionality is provided.
Parameters#
- sep_sys
SetSeparationSystemBase
The separation system.
- order_func
SetSeparationOrderFunction
Used to compute the order of each separation. The separations are appended in ascending order. A
SetSeparationOrderFunction
is aCallable[[np.ndarray], np.ndarray]
.- forbidden_tuple_sizeint
The maximum size of forbidden tuples. The standard tangles use a maximum size of 3 (i.e. forbidden triples).
- copy_sep_sysbool
Whether the separation system sep_sys should be copied. If True, this ensures that the given separation system is left unchanged by the
UncrossingSweep
.
Properties
A list of ids of separations/features that were appended to the tree (including corners)
A list of ids of separations/features that were appended to the tree (without corners)
the low level search object used by this search object
the separation system (feature system) used by this widget
The tangle search tree on which this TangleSweep operates
Methods
Create a tree of tangles
Extend nodes in the tangle search tree until the agreement search limit has decreased below the
A list of ids of separations/features that could be oriented at the given agreement level
Extends nodes in the tree until the agreement search limit has decreased below the specified agreement value
Extends nodes in the tree until the agreement search limit has decreased
Returns a matrix containing all the found tangles in rows
compute the tangles scores for given agreement
- sep_sys