Ask Your Question

Revision history [back]

As you can see, the returned elements are vertices, with their own methods, like the ability to provide its neighbors in the polyhedron.

sage: v = vr[0]
sage: v
A vertex at (0, 20)
sage: type(v)
<class 'sage.geometry.polyhedron.representation.Vertex'>

You can transform a vertex into a tuple as follows:

sage: tuple(v)
(0, 20)

So, to do that for each element of the list, you can just use list comprehension:

sage: [tuple(v) for v in vr]
[(0, 20), (42/5, 16/5), (0, 6)]