# HG changeset patch
# User Nico Van Cleemput <nico.vancleemput@gmail.com>
# Date 1369825378 7200
# Node ID ee06ca0d9cdded157f5684d839040c44f4659e48
# Parent d8e1895c04bab0e112b39ddd917921ab374c3277
Trac 14618: Only allow the generation of fullerenes on up to 254 vertices
diff git a/sage/graphs/graph_generators.py b/sage/graphs/graph_generators.py
a

b


915  915  
916  916  INPUT: 
917  917  
918    ``order``  a positive even integer smaller than or equal to 300. 
 918   ``order``  a positive even integer smaller than or equal to 254. 
919  919  This specifies the number of vertices in the generated fullerenes. 
920  920  
921  921   ``ipr``  default: ``False``  if ``True`` only fullerenes that 
… 
… 

997  997  if order < 0: 
998  998  raise ValueError("Number of vertices should be positive.") 
999  999  
1000   # buckygen can only handle fullerenes on up to 300 vertices 
1001   if order > 300: 
1002   raise ValueError("Number of vertices should be at most 300.") 
 1000  # buckygen can only output fullerenes on up to 254 vertices 
 1001  if order > 254: 
 1002  raise ValueError("Number of vertices should be at most 254.") 
1003  1003  
1004  1004  # fullerenes only exist for an even number of vertices, larger than 20 
1005  1005  # and different from 22 