undirected graph: forAllEdges()