combinat-0.2.8.1: Generate and manipulate various combinatorial objects.

Safe HaskellSafe
LanguageHaskell2010

Math.Combinat.Classes

Contents

Description

Type classes for some common properties shared by different objects

Synopsis

Documentation

class CanBeEmpty a where Source

Emptyness

Methods

isEmpty :: a -> Bool Source

empty :: a Source

Partitions

class HasWeight a where Source

Weight (of partitions, tableaux, etc)

Methods

weight :: a -> Int Source

class HasDuality a where Source

Duality (of partitions, tableaux, etc)

Methods

dual :: a -> a Source

Tableau

class HasShape a s | a -> s where Source

Shape (of tableaux, skew tableaux)

Methods

shape :: a -> s Source

Trees

class HasNumberOfNodes t where Source

Number of nodes (of trees)

Methods

numberOfNodes :: t -> Int Source

class HasNumberOfLeaves t where Source

Number of leaves (of trees)

Methods

numberOfLeaves :: t -> Int Source

Permutations

class HasNumberOfCycles p where Source

Number of cycles (of partitions)

Methods

numberOfCycles :: p -> Int Source