| 1 | initial version |
You can restrict the face_lattice poset by using the subposet method to restrict the poset to elements corresponding to 0-faces, 1-faces and 2-faces as follows: if P is your polytope, you can do:
sage: PP = P.face_lattice()
sage: P2 = PP.subposet(P.faces(0)+P.faces(1)+P.faces(2))
Then, if you do the same with another polytope Q, you can then check:
sage: P2.is_isomorphic(Q2)
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.