A linear extension of the partial order on $P$ is a total order on the elements of $P$ that is compatible with the partial order.
|
|
The flatten of the filtration of $P$ is always a linear extension. This approach is much faster, especially for posets with many linear extensions.
|
|
The partial order of a chain is the total order of the elements.
|
This method was ported from John Stembridge's Maple package available at http://www.math.lsa.umich.edu/~jrs/maple.html#posets.
The object linearExtensions is a method function.