Skip to content

Commit

Permalink
Fix MDG examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Jun 8, 2022
1 parent 1efc66d commit 39a93a3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions networkx/classes/multidigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,7 @@ def remove_edge(self, u, v, key=None):
>>> G.remove_edge(1, 2)
>>> G.edges(keys=True)
MultiEdgeView([(1, 2, 0), (1, 2, 1)])
>>> G.remove_edge(2, 1) # edges are not directed
>>> G.edges(keys=True)
MultiEdgeView([(1, 2, 0)])
OutMultiEdgeView([(1, 2, 0), (1, 2, 1)])
For edges with keys
Expand All @@ -551,7 +548,7 @@ def remove_edge(self, u, v, key=None):
'second'
>>> G.remove_edge(1, 2, key="first")
>>> G.edges(keys=True)
MultiEdgeView([(1, 2, 'second')])
OutMultiEdgeView([(1, 2, 'second')])
"""
try:
Expand Down

0 comments on commit 39a93a3

Please sign in to comment.