Package networkx :: Module search_class :: Class Forest
[hide private]
[frames] | no frames]

Class Forest

source code

object --+    
         |    
    Search --+
             |
            Forest

Forest visitor: build a forest of trees as a list of networkx DiGraphs.

Instance Methods [hide private]
 
__init__(self, G, queue=<class 'networkx.queues.DFS'>, **kwds) source code
 
start_tree(self, v)
Visitor function called at the search start of each connected component.
source code
 
lastseen_edge(self, e)
Visitor function called the last time an edge is encountered.
source code
 
end_tree(self, v)
Visitor function called at the search end of each connected component.
source code

Inherited from Search: firstseen_edge, firstseen_vertex, lastseen_vertex, search

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, G, queue=<class 'networkx.queues.DFS'>, **kwds)
(Constructor)

source code 
Overrides: Search.__init__

start_tree(self, v)

source code 
Visitor function called at the search start of each connected component.
Overrides: Search.start_tree

lastseen_edge(self, e)

source code 
Visitor function called the last time an edge is encountered.
Overrides: Search.lastseen_edge

end_tree(self, v)

source code 
Visitor function called at the search end of each connected component.
Overrides: Search.end_tree