passes vertex edge and graph test