Implemented CheckEdges method and corresponding test.