ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 08 Jan 2021 19:09:19 +0100Translating quiver in QPA to Sagehttps://ask.sagemath.org/question/55196/translating-quiver-in-qpa-to-sage/QPA is a GAP-package that deals with quiver algebras.
A quiver is just another word for directed graph.
My question is whether there is a quick way to translate the QPA-output of a quiver into a directed graph (with the same names for vertices and arrows) for Sage.
For example a quiver in QPA looks as follows:
Quiver( ["v1","v2","v3","v4","v5","v6","v7","v8"], [["v1","v1","a"],["v1","v2","b"],["v2","v3","c"],["v3","v4","d"],["v4","v5","e"],["v5","\v5","f"],["v3","v6","g"],["v6","v7","h"],["v7","v8","i"],["v8","v3","j"]] )
or as follows:
Quiver( ["v1","v2","v3"], [["v1","v2","a1"],["v2","v3","a2"],["v3","v1","a3"]] )
So the first list of the form `["v1","v2","v3","v4","v5","v6","v7","v8"]` are always the names of the vertices and the second list
[["v1","v1","a"],["v1","v2","b"],["v2","v3","c"],["v3","v4","d"],["v4","v5","e"],["v5","\v5","f"],["v3","v6","g"],["v6","v7","h"],["v7","v8","i"],["v8","v3","j"]]
are the names of the vertices, together with the information where they start and end. So for example `,["v2","v3","c"]` means that the arrow c starts at v2 and ends at v3.klaaaFri, 08 Jan 2021 19:09:19 +0100https://ask.sagemath.org/question/55196/