Ticket #9036 (closed defect: fixed)
Graph.canonical_label(certify=True, edge_labels=True) returns a name error
| Reported by: | stumpc5 | Owned by: | jason, ncohen, rlm |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-4.5 |
| Component: | graph theory | Keywords: | labelled graph isomorphism |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | Nathann Cohen |
| Authors: | Christian Stump | Merged in: | sage-4.5.alpha1 |
| Dependencies: | Stopgaps: |
Description
The method canonical_label() for Graph and DiGraph? does not take the parameters 'certify=True' and 'edge_labels=True' at the same time:
sage: g = Graph()
sage: g.canonical_label()
Graph on 0 vertices
sage: g.canonical_label(certify=True)
(Graph on 0 vertices, {})
sage: g.canonical_label(edge_labels=True)
Graph on 0 vertices
sage: g.canonical_label(certify=True, edge_labels=True)
...
NameError: global name 'relabeling' is not defined
}}
Attachments
Change History
comment:2 Changed 3 years ago by ncohen
- Status changed from needs_review to needs_info
Hmmm... I am reaallyyyyy sorry but I do not have the slightest idea of what the function "canonical_label" exactly does... Could I ask that your patch also improves its documentation ? :-/
Nathann
Changed 3 years ago by stumpc5
-
attachment
trac_9036_canonical_label.patch
added
fixed bug in GenericGraph?.canonical_label() and updated documentation
comment:3 Changed 3 years ago by stumpc5
- Status changed from needs_info to needs_review
Done... I hope it is more understandable now.
Christian
comment:4 Changed 3 years ago by ncohen
- Status changed from needs_review to positive_review
Positive review ! I can now see it was a natural thing to do, but I really didn't feel safe without understanding the function's purpose... :-)
Thank you again !
Nathann
