getEdges function

Find edges in a graph or edges not in an undirected graph.