extend_tangles#
- ExtendingTangles.extend_tangles(level: list[Tangle], new_sep_id: int, sep_ids: ndarray, forbidden_agreement: int = 0)#
Extend a list of tangles of the same order by adding new_sep_id into it. The separation is also added into every tangle which is a superset of a tangle from the list.
Parameters#
- levellist of Tangle
A list of tangles to extend.
- new_sep_idint
The id of the separation that will be inserted.
- sep_idsnp.ndarray
The ids of the separations not oriented by the list of tangles, but oriented by other tangles, sorted by order.
- forbidden_agreementint
If a node has this agreement value its children are removed.