|
SOLUTIONS
|
COMBINATORICA PACKAGE SYMBOL
InversionPoset
InversionPoset[n]
returns a Hasse diagram of the partially ordered set on size-n permutations in which
if
can be obtained from
by an adjacent transposition that places the larger element before the smaller.
DetailsDetails
- To use
, you first need to load the Combinatorica Package using Needs["Combinatorica`"]. - The function takes two options:
and VertexLabel, with default values Undirected and False, respectively. - When
is set to Directed, the function produces the underlying directed acyclic graph. When VertexLabel is set to True, labels are produced for the vertices.
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
