Fixed the semantics of edge comparison.