Package obitools :: Package graph :: Class UndirectedGraph
[hide private]
[frames] | no frames]

Class UndirectedGraph

source code


Instance Methods [hide private]
 
__init__(self, label='G', indexer=None, nodes=None, edges=None)
Directed Graph constructor.
source code

Inherited from Graph: __delitem__, __getitem__, __iter__, __len__, __str__, addEdge, addNode, delEdge, delNode, edgeCount, edgeIterator, getBestNode, getEdge, getNode, neighbourIndexSet, newEmpty, nodeIndexIterator, nodeIterator, subgraph

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, label='G', indexer=None, nodes=None, edges=None)
(Constructor)

source code 

Directed Graph constructor.

Parameters:
  • label (str) - Graph name, set to 'G' by default
  • indexer (Indexer instance) - node label indexer
  • nodes (iterable value) - set of nodes to add to the graph
  • edges (iterable value) - set of edges to add to the graph
Overrides: object.__init__