diff -r 01f8c7aabb7e -r 06c2228e39cb thirdparty/python-graph/docs/graph.searching-module.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/thirdparty/python-graph/docs/graph.searching-module.html Wed Nov 26 23:56:19 2008 +0000 @@ -0,0 +1,238 @@ + + + + + graph.searching + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package graph :: + Module searching + + + + +
+
+ +

Module searching

+

Search algorithms for python-graph.

+ + + + + + + + + + + + + +
+ Functions
+ tuple + + + + + + +
breadth_first_search(graph, + root=None)
+ Breadth-first search.
+ + +
+ +
+ tuple + + + + + + +
depth_first_search(graph, + root=None)
+ Depth-first search.
+ + +
+ +
+ + + + + + +
+ Function Details
+ +
+ +
+ + +
+

breadth_first_search(graph, + root=None) +

+
  +
+ +

Breadth-first search.

+
+
Parameters:
+
    +
  • graph (graph) - Graph.
  • +
  • root (node) - Optional root node (will explore only root's connected component)
  • +
+
Returns: tuple
+
A tuple containing a dictionary and a list. +
    +
  1. + Generated spanning tree +
  2. +
  3. + Graph's level-based ordering +
  4. +
+
+
+
+ +
+ +
+ + +
+

depth_first_search(graph, + root=None) +

+
  +
+ +

Depth-first search.

+
+
Parameters:
+
    +
  • graph (graph) - Graph.
  • +
  • root (node) - Optional root node (will explore only root's connected component)
  • +
+
Returns: tuple
+
A tupple containing a dictionary and two lists: +
    +
  1. + Generated spanning tree +
  2. +
  3. + Graph's preordering +
  4. +
  5. + Graph's postordering +
  6. +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +