completed method insertEdge(), not debug