newNode and newEdge halfway finished