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

Class DiGraph

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, nodeIterator, subgraph

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

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: Graph.__init__