#9809 closed defect (duplicate)
Graph.num_edges() gives wrong answer
Reported by: | tobiasljohnson | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | graph theory | Keywords: | num_edges, multiedges |
Cc: | Merged in: | ||
Authors: | Reviewers: | Minh Van Nguyen | |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
If G is a graph with multiedges that contains two copies of an edge e, and you delete one of the copies, num_edges() doesn't go down by one. For example,
sage: G = Graph(multiedges = True) sage: G.add_edges([(0,1), (0,1)]) sage: G.delete_edge(0,1) sage: G.num_edges() 2 sage: G.edges() [(0, 1, None)]
Change History (4)
comment:1 Changed 11 years ago by
- Owner changed from someone to somebody
comment:2 Changed 10 years ago by
comment:3 Changed 10 years ago by
- Resolution set to duplicate
- Reviewers set to Minh Van Nguyen
- Status changed from new to closed
comment:4 Changed 10 years ago by
- Milestone changed from sage-4.6.1 to sage-duplicate/invalid/wontfix
Note: See
TracTickets for help on using
tickets.
The problem is fixed at #8395.