OverflowError with python objects in vertex_label with subgraph isomorphism
Hello,
I encountered the following problem with graph_tool 2.2.31 (commit 245d1e2c, Thu Mar 27 11:28:39 2014 +0100)
from graph_tool.all import *
s = Graph()
s.vertex_properties["vlabel"] = s.new_vertex_property("object")
v = s.add_vertex()
s.vertex_properties["vlabel"][v] = 'Hi0'
subgraph_isomorphism(s, s, max_n=1, vertex_label=(s.vertex_properties["vlabel"], s.vertex_properties["vlabel"]))
Raises the error:
Traceback (most recent call last):
File "bugtest.py", line 9, in <module>
graph_tool.topology.subgraph_isomorphism(s, s, max_n=1, vertex_label=(s.vertex_properties["vlabel"], s.vertex_properties["vlabel"]))
File "/usr/lib/python2.7/dist-packages/graph_tool/topology/__init__.py", line 307, in subgraph_isomorphism
vmaps, emaps, max_n, rng)
OverflowError: can't convert negative value to unsigned
[Finished in 0.6s with exit code 1]
I'm not sure when this occurs, but it is related to the python string 'Hi0' (and other strings with numbers) in the object-type label of the vertex.
Thanks.