add AddEdges function to graph class(quicker way to build a graph)