Package Bio :: Package Nexus :: Module Nodes :: Class Chain
[hide private]
[frames] | no frames]

Class Chain

source code

object --+
         |
        Chain
Known Subclasses:

Stores a list of nodes that are linked together.
Instance Methods [hide private]
 
__init__(self)
Initialize a node chain.
source code
 
_get_id(self)
Get a new id for a node in the chain (PRIVATE).
source code
 
all_ids(self)
Return a list of all node ids.
source code
 
add(self, node, prev=None)
Attach node to another.
source code
 
collapse(self, id)
Delete node from chain and relinks successors to predecessor.
source code
 
kill(self, id)
Kill a node from chain without caring to what it is connected.
source code
 
unlink(self, id)
Disconnect node from his predecessor.
source code
 
link(self, parent, child)
Connect son to parent.
source code
 
is_parent_of(self, parent, grandchild)
Check if grandchild is a subnode of parent.
source code
 
trace(self, start, finish)
Return a list of all node_ids between two nodes (excluding start, including end).
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Initialize a node chain.
Overrides: object.__init__