def have_graph(name):
 for g in mestate.graphs:
  if (g.name == name):
   return True
 return False

def have_graph ( name ) : for g in mestate . graphs : if ( g . name == name ) : return True return False
return true if we have a graph of the given name .