added adding edges to graph