insert#
This module provides functions for manipulating and modifying planar diagrams, which are representations of mathematical knots or graphs. It includes functionality for inserting arcs between nodes and endpoints while maintaining oriented or unoriented attributes in the given planar diagram structure. The module is intended for use in knot theory or graph-based applications.
Functions
|
Inserts an arc between two nodes at specified positions in place, adjusting their endpoint positions to accommodate the new arc. |
|
Insert an endpoint in place and shift the other endpoints counter-clockwise. Args: k (PlanarDiagram): The planar diagram where the endpoint is being inserted. target_endpoint (tuple): A tuple representing the target endpoint as (node, position). adjacent_endpoint (tuple): A tuple representing the adjacent endpoint as (node, position). |
|