I am learning about GAP and QPA. I would like to know when a arrow is in a finite linear combinations of paths of a Quiver. For example:
Q := Quiver(4,[[1,2],[2,4],[1,3],[3,4]]);
KQ := PathAlgebra(Rationals, Q);
AssignGeneratorVariables(KQ);
elem := KQ.a1*KQ.a2-KQ.a3*KQ.a4;
How I know that the arrow a1 is in elem?
If this was about the arrow a3, it's ok:
LeadingMonomial(a3) in WalkOfPath(LeadingMonomial(elem));
> true
Thank you very much!
One can do the following in QPA:
We hope these comments are helpful.
The QPA-team.