28 Jul 2011 06:16
elaboration please: remove_vertex_if&find_vertex
tamo <tamerih <at> gmail.com>
2011-07-28 04:16:23 GMT
2011-07-28 04:16:23 GMT
Hi,
Thank you again for this great library.
First, could you please describe more details about using remove_vertex_if
and find_vertex?
and how to deal with the returned of those functions?
also, I have a simulation scenario where I have to remove nodes with the 10
% highest degrees. thus, I tried to use the following code as initial
attempt
*prop = gt.find_vertex(g,"total",6)
gv = gt.GraphView(g, vfilt=prop, efilt=None, directed=False, reversed=False)
*
but it shows me the following error
Traceback (most recent call last):
File "test-failure.py", line 57, in <module>
gv = gt.GraphView(g, vfilt=gt.find_vertex(g,"total",6), efilt=None,
directed=False, reversed=False)
File "/usr/local/lib/python2.6/dist-packages/graph_tool/__init__.py", line
1525, in __init__
vmap[v] = vfilt(v)
TypeError: 'list' object is not callable
any help to do my scenario would be greatly appreciated
Thank you in advance :)
(Continue reading)
RSS Feed