OGDF Patch: fix invalid iterator access