Added a fix to vertex pairing in RequiredEdges functions. Has not been tested.