0
$\begingroup$

I am trying to generate FerrersDiagram (see http://reference.wolfram.com/language/Combinatorica/ref/FerrersDiagram.html), any clues to getting it to work? I get error message for the following:

<< Combinatorica`

FerrersDiagram[10]

(* combinatorica Graph and Permutations functionality has been superseded 
by preloaded functionality. The package now being loaded may conflict 
with this. Please see the Compatibility Guide for details.*)
$\endgroup$
0

2 Answers 2

3
$\begingroup$

Argument should be a partition:

FerrersDiagram[{1, 1, 2, 2, 4}]

enter image description here

$\endgroup$
1
$\begingroup$

With respect to my question, I was after the partitioning of 10 between 2 and 4 integers, so "ulvi" ans. helped.

Show[FerrersDiagram[IntegerPartitions[10, {2, 4}]], Frame -> True, 
     FrameLabel -> {Style["N", Large, Bold], 
       Style["Level", Large, Bold]}, RotateLabel -> True, 
     LabelStyle -> Directive[Bold, Large]]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.