#12630: Add representations of quivers and quiver algebras to sage
-------------------------------------+-------------------------------------
Reporter: JStarx | Owner: AlexGhitza
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.2
Component: algebra | Resolution:
Keywords: algebra, quiver, | Merged in:
module, days49 | Reviewers: Simon King
Authors: Jim Stark, Simon | Work issues: mutability of quiver
King, Mathieu Guay-Paquet, Aladin | representation elements
Virmaux | Commit:
Report Upstream: N/A | b2248e0da6dcd8b6c07ff91db00491ce673576e8
Branch: | Stopgaps:
public/combinat/quivers |
Dependencies: #12412, #12413, |
#14806, #15491, #15623, #15810 |
-------------------------------------+-------------------------------------
Comment (by SimonKing):
Concerning hash: I believe it is bad that the hash depends on the name
(that's a general problem, though):
{{{
sage: Q = DiGraph({1:{2:['a'], 3:['b']}, 2:{4:['c']},
3:{4:['d']}}).path_semigroup()
sage: P = Q.P(QQ, 2)
sage: v = P.zero()
sage: v.set_element([1], 2)
sage: hash(v)
1669587902
sage: v.rename('foobar')
sage: hash(v)
-1969371895
}}}
So, I suggest that (in addition to making `set_element` private) I
implement a hash based on the data that is used for comparison.
--
Ticket URL: <http://trac.sagemath.org/ticket/12630#comment:239>
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.