checking possible edges correctness