replace

Replace an existing node in the graph with a new node. The new node
will be connected to all the nodes the old node was. The old node will
be removed. The new node is assumed to have no incoming or outgoing edges