made ConstEdgeIterator a nested class, changed constructor