# HG changeset patch
# User Lukas Lansky <lansky@kam.mff.cuni.cz>
# Date 1325633796 0
# Node ID 3592d79b17017008ca7c057eeff01065f86acf3a
# Parent 92c93226b64f933e0af00bbcbd1a8a79c444f43f
An empty graph is regular
diff git a/sage/graphs/generic_graph.py b/sage/graphs/generic_graph.py
a

b


8906  8906  
8907  8907  sage: graphs.HouseGraph().is_regular() 
8908  8908  False 
8909   """ 
 8909  
 8910  A graph without vertices is `k`regular for every `k`:: 
 8911  
 8912  sage: Graph().is_regular() 
 8913  True 
 8914  """ 
 8915  if self.order() == 0: 
 8916  return True 
 8917  
8910  8918  deg_it = self.degree_iterator() 
8911  8919  if k is None: 
8912  8920  k = deg_it.next() 