insert_phantom_nodes_on_internal_arcs#

insert_phantom_nodes_on_internal_arcs(k: PlanarDiagram, nodes, exclude_arcs=None)#

insert phantom bivalent vertices on edges that connect two nodes from the nodes set. Except the excluded arcs. :param k: :param nodes: :param exclude_arcs: :return: list of newly created phantom nodes