Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js
Ask Your Question
0

Get vector from abelian group

asked 9 years ago

MLainz gravatar image

I want to represent the Cayley graph of an abelian group (let's say A=Z25) is a way that the element g=aibj 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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 9 years ago

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.

Preview: (hide)
link

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: 9 years ago

Seen: 338 times

Last updated: Feb 04 '16