working on adding edges to graph