Linear extensions and directed clique counts via modular partitions
Daniela Egas Santander, Matteo Santoro, Jason P. Smith
TL;DR
The paper tackles the difficulty of counting linear extensions, a $\#P$-complete problem, by deriving recursive formulas for posets whose incomparability graphs admit modular partitions with skeletons that are trees, necklaces of cliques, or their combinations; a constructive pivot-based decomposition yields explicit enumeration via products over modular counts and structured binomial-sum terms. It connects LE counting to equivalent formulations in permutations and directed graphs, including edge-induced transitive tournaments and Hamiltonian paths, and extends these insights to applications in neuroscience and network design. The main technical contribution is a general theorem that formalizes how to partition the interval of a linear extension using pivots and to count local extensions within each interval, enabling closed forms in several structured cases (path, necklace, tree) and providing a pathway to constructive generation of all linear extensions. The work thus offers both theoretical advances in modular-decomposition-based counting and practical tools for constructing and analyzing complex directed networks with prescribed higher-order clique structures.
Abstract
Counting linear extensions is a fundamental problem in poset theory. It is known to be #P-complete, with polynomial-time formulas available in special cases. In this work, we develop new recursive formulas for counting linear extensions of posets whose modular partitions have particular structure. Specifically, we focus on posets whose incomparability graph has a modular partition with a skeleton that is a tree, a necklace of cliques, or a combination of both. The proofs are constructive and allow for the explicit generation of all linear extensions. We also discuss equivalent formulations of the problem in terms of permutations and directed graphs. The directed graph perspective is related to counting directed simplices in the directed flag complex of a digraph, with applications to understanding higher-order structure in neural circuits.
