| 19 | with traceback |
| 20 | {{{ |
| 21 | .../sage/geometry/polyhedron/base.pyc in |
| 22 | plot(self, point, line, polygon, wireframe, fill, projection_direction, **kwds) |
| 23 | 789 return polyhedron.projection() |
| 24 | 790 |
| 25 | --> 791 projection = project(self) |
| 26 | 792 try: |
| 27 | 793 plot_method = projection.plot |
| 28 | |
| 29 | .../sage/geometry/polyhedron/base.pyc |
| 30 | in project(polyhedron) |
| 31 | 787 return polyhedron.schlegel_projection() |
| 32 | 788 else: |
| 33 | --> 789 return polyhedron.projection() |
| 34 | 790 |
| 35 | 791 projection = project(self) |
| 36 | |
| 37 | .../sage/geometry/polyhedron/base.pyc |
| 38 | in projection(self) |
| 39 | 4165 """ |
| 40 | 4166 from .plot import Projection |
| 41 | -> 4167 self.projection = Projection(self) |
| 42 | 4168 return self.projection |
| 43 | 4169 |
| 44 | |
| 45 | .../sage/geometry/polyhedron/plot.pyc |
| 46 | in __init__(self, polyhedron, proj) |
| 47 | 492 |
| 48 | 493 if polyhedron.ambient_dim() == 2: |
| 49 | --> 494 self._init_from_2d(polyhedron) |
| 50 | 495 elif polyhedron.ambient_dim() == 3: |
| 51 | 496 self._init_from_3d(polyhedron) |
| 52 | |
| 53 | .../sage/geometry/polyhedron/plot.pyc |
| 54 | in _init_from_2d(self, polyhedron) |
| 55 | 748 self.dimension = 2 |
| 56 | 749 self._init_points(polyhedron) |
| 57 | --> 750 self._init_lines_arrows(polyhedron) |
| 58 | 751 self._init_area_2d(polyhedron) |
| 59 | 752 |
| 60 | |
| 61 | .../sage/geometry/polyhedron/plot.pyc in |
| 62 | _init_lines_arrows(self, polyhedron) |
| 63 | 812 if not obj[i].is_vertex(): continue |
| 64 | 813 for j in range(len(obj)): |
| 65 | --> 814 if polyhedron.vertex_adjacency_matrix()[i,j] == 0: continue |
| 66 | 815 if i < j and obj[j].is_vertex(): |
| 67 | 816 l = [obj[i].vector(), obj[j].vector()] |
| 68 | |
| 69 | .../site-packages/sage/misc/cachefunc.pyx |
| 70 | in sage.misc.cachefunc.CachedMethodCallerNoArgs.__call__ (build/cythonized/sage/misc/cachefunc.c:13441)() |
| 71 | 2375 if self.cache is None: |
| 72 | 2376 f = self.f |
| 73 | -> 2377 self.cache = f(self._instance) |
| 74 | 2378 return self.cache |
| 75 | 2379 |
| 76 | |
| 77 | .../sage/geometry/polyhedron/base.pyc |
| 78 | in vertex_adjacency_matrix(self) |
| 79 | 2036 (0, 0, 1, 1, 0) A vertex at (3, 0) |
| 80 | 2037 """ |
| 81 | -> 2038 return self._vertex_adjacency_matrix() |
| 82 | 2039 |
| 83 | 2040 adjacency_matrix = vertex_adjacency_matrix |
| 84 | |
| 85 | .../sage/geometry/polyhedron/base.pyc |
| 86 | in _vertex_adjacency_matrix(self) |
| 87 | 334 M[j, i] = 1 |
| 88 | 335 |
| 89 | --> 336 face_lattice = self.face_lattice() |
| 90 | 337 for face in face_lattice: |
| 91 | 338 Vrep = face.ambient_Vrepresentation() |
| 92 | |
| 93 | .../sage/misc/cachefunc.pyx |
| 94 | in sage.misc.cachefunc.CachedMethodCallerNoArgs.__call__ (build/cythonized/sage/misc/cachefunc.c:13441)() |
| 95 | 2375 if self.cache is None: |
| 96 | 2376 f = self.f |
| 97 | -> 2377 self.cache = f(self._instance) |
| 98 | 2378 return self.cache |
| 99 | 2379 |
| 100 | |
| 101 | .../sage/geometry/polyhedron/base.pyc |
| 102 | in face_lattice(self) |
| 103 | 3814 return Hasse_diagram_from_incidences\ |
| 104 | 3815 (atoms_incidences, coatoms_incidences, |
| 105 | -> 3816 face_constructor=face_constructor, required_atoms=atoms_vertices) |
| 106 | 3817 |
| 107 | 3818 def faces(self, face_dimension): |
| 108 | |
| 109 | .../sage/geometry/hasse_diagram.pyc |
| 110 | in Hasse_diagram_from_incidences(atom_to_coatoms, coatom_to_atoms, face_constructor, required_atoms, key, **kwds) |
| 111 | 180 # Make sure that coatoms are in the end in proper order |
| 112 | 181 tail = [faces[atoms, frozenset([coatom])] |
| 113 | --> 182 for coatom, atoms in enumerate(coatom_to_atoms)] |
| 114 | 183 tail.append(faces[A, frozenset()]) |
| 115 | 184 new_order = [n for n in new_order if n not in tail] + tail |
| 116 | |
| 117 | KeyError: (frozenset([7]), frozenset([3])) |
| 118 | }}} |