Package pgraph :: Module cluster :: Class cluster
[show private | hide private]
[frames | no frames]

Type cluster

object --+
         |
        cluster


Method Summary
  __init__(self, id)
Class constructor.
  add_node(self, node)
Add a node to the cluster.
  del_node(self, node_id)
Remove a node from the cluster.
Mixed find_node(self, attribute, value)
Find and return the node with the specified attribute / value pair.
  render(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
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
NoneType id = None                                                                  
list nodes = []

Method Details

__init__(self, id=None)
(Constructor)

Class constructor.
Overrides:
__builtin__.object.__init__

add_node(self, node)

Add a node to the cluster.
Parameters:
node - Node to add to cluster
           (type=pGRAPH Node)

del_node(self, node_id)

Remove a node from the cluster.

find_node(self, attribute, value)

Find and return the node with the specified attribute / value pair.
Parameters:
attribute - Attribute name we are looking for
           (type=String)
value - Value of attribute we are looking for
           (type=Mixed)
Returns:
Node, if attribute / value pair is matched. None otherwise.
           (type=Mixed)

Class Variable Details

id

Type:
NoneType
Value:
None                                                                  

nodes

Type:
list
Value:
[]                                                                     

Generated by Epydoc 2.1 on Fri Jun 16 17:16:25 2006 http://epydoc.sf.net