Package young :: Module partition :: Class SeqOfPartition
[show private | hide private]
[frames | no frames]

Type SeqOfPartition

object --+
         |
        SeqOfPartition


class for generating partitions
Method Summary
  __init__(self, number)
  __getitem__(self, index)
  __iter__(self)
  __len__(self)
Return the number of partitions
  __repr__(self)
  __str__(self)
  _show_partition(self)
  add(self, aPartition)
Add a partition to a sequence of partitions.
  add_single_partition(self, pat)
Add a new partition to a member.
  distinct(self)
Return only distinct partitions.
  dot_notation(self)
Display each partition in a dot-notation.
  down(self)
  get_partition(self)
Return the partition
  init_partition(self)
initialize partition.
  plot(self)
Plot each partition
  remove(self, partition)
Remove a partition from a sequence of patitions.
  show_partition(self)
show each partition of the number this instance holds.
  size(self)
Return the number of partitions
  up(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Class Variable Summary
tuple __slots__ = ('number', 'seq')
member_descriptor number = <member 'number' of 'SeqOfPartition' objects>
member_descriptor seq = <member 'seq' of 'SeqOfPartition' objects>

Method Details

__len__(self)
(Length operator)

Return the number of partitions

add(self, aPartition)

Add a partition to a sequence of partitions. This has no effect if the partition is already present.

add_single_partition(self, pat)

Add a new partition to a member.

distinct(self)

Return only distinct partitions.

dot_notation(self)

Display each partition in a dot-notation.

get_partition(self)

Return the partition

init_partition(self)

initialize partition.

plot(self)

Plot each partition

remove(self, partition)

Remove a partition from a sequence of patitions. This has no effect if the patition is not a member.

show_partition(self)

show each partition of the number this instance holds.

size(self)

Return the number of partitions

Class Variable Details

__slots__

Type:
tuple
Value:
('number', 'seq')                                                      

number

Type:
member_descriptor
Value:
<member 'number' of 'SeqOfPartition' objects>                          

seq

Type:
member_descriptor
Value:
<member 'seq' of 'SeqOfPartition' objects>                             

Generated by Epydoc 2.1 on Sun Aug 1 02:55:58 2004 http://epydoc.sf.net