Opened 9 years ago
Last modified 9 years ago
#12477 closed defect
Graph.relabel modifies the dictionary given as an input — at Version 1
Reported by: | ncohen | Owned by: | jason, ncohen, rlm |
---|---|---|---|
Priority: | major | Milestone: | sage-5.0 |
Component: | graph theory | Keywords: | Cernay2012 |
Cc: | nthiery | Merged in: | |
Authors: | Nathann Cohen | Reviewers: | |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
Well, it's as the title says...
The patch just fixes it the obvious way, and moves ome code around to make it easier to read.
(reported by Nicolas Thiéry)
sage: g = Graph({1:[2,3]}) sage: rel = {1:'a', 2:'b'} sage: g.relabel(rel) sage: g.vertices() [3, 'a', 'b'] sage: rel {1: 'a', 2: 'b', 3: 3}
Nathann
Change History (2)
comment:1 Changed 9 years ago by
- Description modified (diff)
- Keywords Cernay2012 added
- Status changed from new to needs_review
Changed 9 years ago by
Note: See
TracTickets for help on using
tickets.