lecount {lecount} | R Documentation |
lecount
counts linear extensions of partially ordered sets
(posets). It includes a collection of algorithms, which are documented
in the paper Counting linear extensions of sparse posets (IJCAI'16).
lecount(m)
m |
logical or integer square matrix. Each poset is represented
as a 0-1 matrix, where a 1 at |
This R package is a wrapper of LEcount 16.04.20 C++ code by Kustaa Kangas.
Resulting count.
Kustaa Kangas
m = matrix(c(
0,0,0,0,0,0,0,0,0,0,
0,0,0,1,0,0,0,0,1,0,
0,1,0,0,0,1,1,0,0,0,
0,0,0,0,0,1,0,0,0,0,
0,1,0,1,0,1,0,0,1,0,
1,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,1,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
1,1,1,1,0,0,1,0,0,0
),10,,TRUE)
lecount(m)