Example #1
0
def __iso__(G1, glist):
    """
    helper function of generate motifs
    """
    for G2 in glist:
        if isomorphic(G1, G2):
            return True
    return False
Example #2
0
def iso(G1, glist):
    """Quick and dirty nonisomorphism checker used to check isomorphisms."""
    for G2 in glist:
        if isomorphic(G1, G2):
            return True
    return False