--- nfo/python/scripts/sixdegrees/sixtest.py 2008/02/06 01:45:22 1.2 +++ nfo/python/scripts/sixdegrees/sixtest.py 2008/02/06 03:14:58 1.4 @@ -1,6 +1,6 @@ #!/usr/bin/env python -# $Id: sixtest.py,v 1.2 2008/02/06 01:45:22 joko Exp $ +# $Id: sixtest.py,v 1.4 2008/02/06 03:14:58 joko Exp $ # (c) 2008 Andreas Motl @@ -28,8 +28,8 @@ # settings for random graph RANDOM_MAX_NODES = 10 RANDOM_MAX_CHILDREN_PER_NODE = 5 -RANDOM_MAX_NODES = 10000 -RANDOM_MAX_CHILDREN_PER_NODE = 10 +#RANDOM_MAX_NODES = 1000 +#RANDOM_MAX_CHILDREN_PER_NODE = 10 def operateOnFixedGraph(): @@ -95,7 +95,7 @@ # 1. calculate paths print '-' * 42 - print " Finding paths from node %s to %s" % (source_node.id, target_node.id) + print " Finding paths from %s to %s (depth=%s)" % (source_node.id, target_node.id, MAX_SEARCH_DEPTH) print '-' * 42 paths = graph.computePaths(source_node, target_node, MAX_SEARCH_DEPTH)