'Returns True if a subgraph of G1 is isomorphic to G2.'

def subgraph_is_isomorphic(self):

    try:
        x = next(self.subgraph_isomorphisms_iter())
        return True
    except StopIteration:
        return False
