add_node_to#

add_node_to(k, node_for_adding, node_type, degree=None)#
Parameters:
  • k – planar diagram instance for adding a node

  • node_for_adding

  • node_type – type of node “X”, “V”, …

  • degree – degree of the node (optional)

Returns: