Deleting edges is broken
[4026fb2a] broke removing edges; the problem is at line 1043 of file ./graph_tool/__init__.py
Is:
return libcore.remove_edge(self, edge)
Should be:
return libcore.remove_edge(self.__graph, edge)
The [4026fb2a] version would produce the following error:
>>> import graph_tool
>>> g = graph_tool.Graph()
>>> v = g.add_vertex()
>>> e = g.add_edge(v,v)
>>> g.edge(v,v)
<Edge object with source '0' and target '0' at 0x16d8dd0>
>>> g.remove_edge(e)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/graph_tool/__init__.py", line 1043, in remove_edge
return libcore.remove_edge(self, edge)
Boost.Python.ArgumentError: Python argument types in
graph_tool.libgraph_tool_core.remove_edge(Graph, Edge)
did not match C++ signature:
remove_edge(graph_tool::GraphInterface {lvalue}, boost::python::api::object)