nodes range replaced by forAllEdges()