UndirectedGraph edges range fix