# HG changeset patch
# User Marshall Hampton <hamptonio@gmail.com>
# Date 1271563573 18000
# Node ID a15e37f79d7cfd706bdc6f55e6584d796f3a7f03
# Parent ea02bc44fa947f97673768aede1126e6bc7b2c79
trac_8709 slight change of doctest to avoid itanium problem
diff r ea02bc44fa94 r a15e37f79d7c sage/geometry/polyhedra.py
a

b


3088  3088  sage: [len(x) for x in c5_20_fl.level_sets()] # not tested  very long time 
3089  3089  [1, 20, 190, 580, 680, 272, 1] 
3090  3090  sage: polytopes.n_cube(2).face_lattice().plot() 
 3091  sage: level_sets = polytopes.cross_polytope(2).face_lattice().level_sets() 
 3092  sage: print level_sets[0], level_sets[1] 
 3093  [(None, (0, 1, 2, 3))] [((0, 1, 2, 3), None)] 
3091  3094  
3092  3095  REFERENCES: 
3093  3096  
… 
… 

3099  3102  except AttributeError: 
3100  3103  pass 
3101  3104  # dictionary of the form: (vertices,faces):(upper cover keys) 
3102   f_l_dict = {(None,None):[(tuple([x]),tuple(self._vertex_face_indexset([x]))) 
 3105  f_l_dict = {(None,tuple(range(self.n_Hrepresentation()))):[(tuple([x]),tuple(self._vertex_face_indexset([x]))) 
3103  3106  for x in range(self.n_Vrepresentation())]} 
3104  3107  todolist = f_l_dict.values()[0][:] 
3105  3108  while todolist != []: 
… 
… 

3113  3116  minimals = [] 
3114  3117  if candidates == []: 
3115  3118  f_l_dict[todo].append((tuple(range(self.n_Vrepresentation())), 
3116   tuple(range(self.n_Hrepresentation())))) 
 3119  None)) 
3117  3120  while candidates != []: 
3118  3121  c = candidates[0] 
3119  3122  closure = self._v_closure(list(todo[0])+[c]) 