tiny addEdges update
fixed addEdge bug