Edge stores value_type not iterator.
refactoring (*it).member to it->member