Commit 2e5abc00 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in Graph.remove_edge()

This fixes ticket #97.
parent 4026fb2a
......@@ -1040,7 +1040,7 @@ class Graph(object):
def remove_edge(self, edge):
"""Remove an edge from the graph."""
return libcore.remove_edge(self, edge)
return libcore.remove_edge(self.__graph, edge)
def remove_edge_if(self, predicate):
"""Remove all edges from the graph, for which ``predicate(e)`` evaluates
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment