Verify if 2 graphs are isomorphic