/[cvs]/nfo/python/scripts/sixdegrees/sixtest.py
ViewVC logotype

Diff of /nfo/python/scripts/sixdegrees/sixtest.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Wed Feb 6 01:22:13 2008 UTC revision 1.4 by joko, Wed Feb 6 03:14:58 2008 UTC
# Line 12  Line 12 
12  # This program is distributed in the hope that it will be useful,  # This program is distributed in the hope that it will be useful,
13  # but WITHOUT ANY WARRANTY; without even the implied warranty of  # but WITHOUT ANY WARRANTY; without even the implied warranty of
14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  # GNU General Public License for more details.  # GNU Affero General Public License for more details.
16  #  #
17  # You should have received a copy of the GNU Affero General Public License  # You should have received a copy of the GNU Affero General Public License
18  # along with this program.  If not, see <http://www.gnu.org/licenses/>.  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
# Line 95  def findAllPaths(graph, source_node, tar Line 95  def findAllPaths(graph, source_node, tar
95    
96    # 1. calculate paths    # 1. calculate paths
97    print '-' * 42    print '-' * 42
98    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)
99    print '-' * 42    print '-' * 42
100    paths = graph.computePaths(source_node, target_node, MAX_SEARCH_DEPTH)    paths = graph.computePaths(source_node, target_node, MAX_SEARCH_DEPTH)
101        

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed