Hi, I updated graph-tool to 2.9 and I got an exception from find_vertex_range method (see below). Can you confirm this is a bug? ================ In [1]: import graph_tool.all as gt In [2]: g = gt.Graph() In [3]: g.add_edge_list([(0,1),(0,2),(1,2)]) In [4]: g.degree_property_map("out").a Out[4]: PropertyArray([2, 1, 0], dtype=int32) In [5]: gt.find_vertex_range(g,g.degree_property_map("out"),(2,3)) --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-5-e6f941427c2a> in <module>() ----> 1 gt.find_vertex_range(g,g.degree_property_map("out"),(2,3)) /usr/lib/python2.7/dist-packages/graph_tool/util/__init__.pyc in find_vertex_range(g, prop, range) 65 ret = libgraph_tool_util.\ 66 find_vertex_range(g._Graph__graph, _degree(g, prop), ---> 67 (_convert(prop, range[0]), _convert(prop, range[1]))) 68 return ret 69 NameError: global name '_convert' is not defined ================ Regards, -- Santiago Videla http://www.linkedin.com/in/svidela
On 30.09.2015 19:03, Santiago Videla wrote:
Hi,
I updated graph-tool to 2.9 and I got an exception from find_vertex_range method (see below). Can you confirm this is a bug?
Yes it is. I've just fixed it in git. Thanks for spotting this. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
Santiago Videla -
Tiago de Paula Peixoto