tangle_matrix#
- UncrossingSweep.tangle_matrix(min_agreement: int | None = None, only_initial_seps: bool = True)#
Returns a matrix containing all the found tangles in rows.
Every row of the returned matrix is a \(\{-1,1\}\)-orientation-vector, every column corresponds to a separation. The columns are ordered in the same way the corresponding separations appear in the tree.
Parameters#
- min_agreement:
All tangles of at least this agreement value are returned. If None, the search tree’s limit is used.
- only_initial_sepsbool
If False, the resulting matrix contains one column for every separation that was oriented, including all the corners introduced by uncrossing. If True, only columns corresponding to the explicitly appended separations are included.
Returns#
- tangle_matnumpy.ndarray,
A numpy \((m,k)\)-matrix with entries in \(\{-1,1\}\) containing one row for each of the \(m\) tangles and a column for each of the \(k\) oriented separations.