Ask Your Question

Get vector from abelian group

asked 2016-02-03 19:30:48 -0500

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*b*a^-1


 ---> [0,1]

How could I do that?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-02-03 19:41:46 -0500

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)

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


Asked: 2016-02-03 19:30:48 -0500

Seen: 45 times

Last updated: Feb 03 '16