| 1 | initial version |
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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.