combinat-diagrams-0.2: Graphical representations for various combinatorial objects

Safe HaskellNone
LanguageHaskell2010

Math.Combinat.Diagrams.Partitions.Integer

Description

Young and Ferrers diagrams for integer partitions.

For example the code

drawFerrersDiagram' EnglishNotation red True $ Partition [8,6,3,3,1]

produces the diagram:

Synopsis

Documentation

drawFerrersDiagram :: Renderable (Path V2 Double) b => Partition -> QDiagram b V2 Double Any Source

Draws a Ferrers diagram with the default settings (English notation, no boxes)

drawFerrersDiagram' Source

Arguments

:: Renderable (Path V2 Double) b 
=> PartitionConvention

orientation

-> Colour Double

color

-> Bool

whether to draw the boxes

-> Partition 
-> QDiagram b V2 Double Any 

drawPartitionBoxes :: Renderable (Path V2 Double) b => PartitionConvention -> Partition -> QDiagram b V2 Double Any Source

Draws a partition as a grid of boxes (sometimes also called Young diagram)