Ask Your Question

Revision history [back]

The "center" (average of the vertices) is available via the center method like so:

sage: q = polytopes.permutahedron(4)
sage: q.dim()
3
sage: q.center()
(1/40000, 1/40000, 1/20000)

You can look through the other methods available in the Polyhedra documentation.