Admin message

Please use the issue tracker only to report bugs (i.e. errors in the library that need to be fixed) or feature requests.

Please check if the current git version also has the same problem. An easy way to do this is to use google colab!

For questions about how to compile, install or use the library, please use instead the web forum at https://forum.skewed.de/c/graph-tool.


(If unsure, use the forum first.)


IMPORTANT: When opening new issues, please fill out the required information listed in the issue template!

purge_vertices(in_place=True) returns RuntimeError

from graph_tool.all import *
g = Graph(directed=True)
g.add_vertex(3)
g.add_edge(0,1)
g.add_edge(1,0)
g.set_vertex_filter(label_largest_component(g))  # filter out unconnected vertices
g.purge_vertices(in_place=True)

returns

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/graph_tool/__init__.py", line 2790, in purge_vertices
    self.__graph.purge_vertices(_prop("v", self, old_indexes))
RuntimeError: boost::bad_any_cast: failed conversion using boost::any_cast

MacOS

Python 2.7.15

latest graph-tool version

Assignee Loading
Time tracking Loading