Graph: iterinedges in O(V).