Untested changes for checking whether graph is isomorphic or not