Trees | Index | Help |
---|
Package Bio :: Package Pathway :: Package Rep :: Module MultiGraph :: Class MultiGraph |
|
Method Summary | |
---|---|
Initializes a new MultiGraph object. | |
Returns true if g is equal to this graph. | |
Returns true if g is not equal to this graph. | |
Returns an unique string representation of this graph. | |
Returns a concise string description of this graph. | |
Adds an edge to this graph. | |
Adds a node to this graph. | |
Returns a list of (child, label) pairs for parent. | |
Returns a list of unique children for parent. | |
Returns a list of all the edges with this label. | |
Returns a list of all the edge labels in this graph. | |
Returns a list of the nodes in this graph. | |
Returns a list of (parent, label) pairs for child. | |
Returns a list of unique parents for child. | |
Removes edge. | |
Removes node and all edges connected to it. |
Method Details |
---|
__init__(self,
nodes=[])
Initializes a new MultiGraph object.
|
__eq__(self,
g)
Returns true if g is equal to this graph.
|
__ne__(self, g)Returns true if g is not equal to this graph. |
__repr__(self)
Returns an unique string representation of this graph.
|
__str__(self)
Returns a concise string description of this graph.
|
add_edge(self, source, to, label=None)Adds an edge to this graph. |
add_node(self, node)Adds a node to this graph. |
child_edges(self, parent)Returns a list of (child, label) pairs for parent. |
children(self, parent)Returns a list of unique children for parent. |
edges(self, label)Returns a list of all the edges with this label. |
labels(self)Returns a list of all the edge labels in this graph. |
nodes(self)Returns a list of the nodes in this graph. |
parent_edges(self, child)Returns a list of (parent, label) pairs for child. |
parents(self, child)Returns a list of unique parents for child. |
remove_edge(self, parent, child, label)Removes edge. -- NOT IMPLEMENTED |
remove_node(self, node)Removes node and all edges connected to it. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Jan 31 09:59:43 2007 | http://epydoc.sf.net |