insert_tangle#

insert_tangle(k, node, tangle, compass=None, create_using=None)#

Insert the tangle into the knotted stricture at the 4-valent node. :param k: knotted structure to insert the tangle :param node: the node which we will replace with a tangle :param tangle: the tangle we will insert :param compass: a dictionary or list specifying which endpoints are connected to which endpoints. For example, a dictionary {0: “NE”, 1: “NW”, 2: “SW”, 3: “SE”} will connect the NE endpoint with the node node of k at position 0, etc. :return: