macaulayOrders(P, AllOrders=>Boolean)
With AllOrders=>false, the list returned by the method will have at most one element.
i1 : B = booleanLattice 3 o1 = B o1 : Poset
i2 : #(macaulayOrders B) o2 = 12
i3 : macaulayOrders(B, AllOrders=>false) o3 = {{000, 001, 010, 100, 011, 101, 110, 111}} o3 : List
The object AllOrders is a symbol.
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/MacaulayPosets.m2:1624:0.