added docstring to areIsomorphic()