|
From: | Tamas Nepusz |
Subject: | Re: [igraph] shortest path between two vertices |
Date: | Tue, 3 Feb 2009 08:43:36 +0000 |
print g.shortest_paths( source=[0], targets=[1], weights=None, mode=igraph.ALL)In 0.5.1, you cannot specify the target vertices, only the sources (targets were added in the dev tree only). Hence, there are no "source" and "target" keyword arguments, you have a single "vertices" keyword argument which specifies the source vertices. See help(Graph.shortest_paths) in your Python environment.Traceback (most recent call last): File "goanal.py", line 61, in <module> print g.shortest_paths( source=[0], targets=[1]) TypeError: 'source' is an invalid keyword argument for this function
-- Tamas
[Prev in Thread] | Current Thread | [Next in Thread] |