modified graph.ml to include add edges function