How do I split a node in an undirected graph into two new nodes so that two edges that allowed a path through the original node would now be two dead ends? I need to preserve th