Extract rows from the relation matrix of Distributive Lattice

13 views
Skip to first unread message

iqra khan

unread,
Jan 4, 2023, 6:05:02 AM1/4/23
to maca...@googlegroups.com
Hello,

How to extract rows from the relation matrix of the distributive lattice? The example is given below

P=poset{{1,2},{3}}
distributiveLattice P

It gives the relation matrix

Relation Matrix: | 1 1 1 1 1 1 |
                          | 0 1 1 1 1 0 |
                          | 0 0 1 0 1 0 |
                          | 0 0 0 1 1 0 |
                          | 0 0 0 0 1 0 |
                          | 0 0 1 0 1 1 |


Thanks

Tim Duff

unread,
Jan 10, 2023, 11:59:32 AM1/10/23
to Macaulay2
Looks like the following would work:

needsPackage "Posets"
P = poset{{1,2},{3}}
D = distributiveLattice P
D#RelationMatrix
Reply all
Reply to author
Forward
0 new messages