add_edge function

Add an edge between nodes in a graph object