simplified design
fixed insertEdge