def iso(G1, glist):
 for G2 in glist:
  if isomorphic(G1, G2):
   return True
 return False

def iso ( G1 , glist ) : for G2 in glist : if isomorphic ( G1 , G2 ) : return True return False
quick and dirty nonisomorphism checker used to check isomorphisms .