[graph-tool] elaboration please: remove_vertex_if&find_vertex
tamerih at gmail.com
Sun Aug 14 17:37:05 CEST 2011
thanks for the quick reply.
I have this simple code to use the function
>> g = load_graph("Graph1.dot")
>> trust = g.new_edge_property("double")
>> trust.a = random(g.num_edges())
>> t = gt.trust_transitivity(g, trust, source=g.vertex(2), target=None)
>> print t.a
I was expecting to get some values same as the documentation example, so
could you please explain to me why do I got the following results?
[ 0. 0. 1. ..., 0. 0. 0.]
P.S attached file is the graph I used to run this code
View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/elaboration-please-remove-vertex-if-find-vertex-tp3205581p3253736.html
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
More information about the graph-tool