Got the edge and vertex adding working