#15278: Hash and equality for graphs
-------------------------------------+-------------------------------------
Reporter: SimonKing | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.1
Component: graph theory | Resolution:
Keywords: | Merged in:
Authors: Simon King | Reviewers: Nathann Cohen
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/SimonKing/ticket/15278 | 51d63284da70ffa4772a0d0fda6020750aef2e6d
Dependencies: #12601, #15491 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by SimonKing):
Or go the middle way: In `__hash__` and in the self-mutating methods, we
should rely on the flag, but in `__copy__` we should be more careful, and
should only return `self` if it is truely immutable.
Namely, it seems currently used to create the copy of a mock-immutable
graph to mutate the copy, and thus we must return a ''proper'' copy rather
than just self in this case.
--
Ticket URL: <http://trac.sagemath.org/ticket/15278#comment:66>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.