Ask Your Question
0

Get vector from abelian group

asked 2016-02-04 02:30:48 +0100

MLainz gravatar image

I want to represent the Cayley graph of an abelian group (let's say $A=Z_5^2$) is a way that the element $g=a^i b^j$ is in the position $[i,j]$. I need a method .pos()such that:

A= groups.presentation.FGAbelian([n,n]);
g=A[2]

 ---> g = a*b*a^-1

g.pos()

 ---> [0,1]

How could I do that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-02-04 02:41:46 +0100

vdelecroix gravatar image

One possibility

sage: A = AbelianGroup([4,5])
sage: G = A.cayley_graph()
sage: pos = {g: g.list() for g in A}
sage: G.set_pos(pos)
sage: G.show()

There might be a similar solution using FGAbelian but I did not find anything as elegant.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-02-04 02:30:48 +0100

Seen: 320 times

Last updated: Feb 04 '16