complexity_levels#
- tangles.analysis.complexity_levels(tangle_matrix: ndarray)#
Calculates the complexity levels of tangles.
The complexity level of a tangle, given a tangle_matrix, is the smallest index such that if the tangle matrix were sliced until this index the tangle would be distinguishable from every other tangle it is not contained in. This corresponds to the level at which the tangle starts to exist for the first time.
Parameters#
- tangle_matrixnp.ndarray
A (tangles x separations)-matrix encoding how a tangle orients a separation. Contains the orientation of the separation if the tangle orients the separation and otherwise 0.
Returns#
- np.ndarray
The complexity levels of the tangles.