Ask Your Question
0

power graph of a group

asked 7 years ago

GA316 gravatar image

The power graph of a group is the graph whose vertex set is the group, two elements being adjacent if one is a power of the other.

I am wondering the notion of power graph of a group has been implemented in sage?

Kindly share your views.

Thank you.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 7 years ago

vdelecroix gravatar image

This can easily be constructed as follows

sage: S = SymmetricGroup(4)
sage: G = DiGraph(list(S))
sage: for s in S: G.add_edges([(s,s**k) for k in range(2,s.order())])
Preview: (hide)
link

Comments

Thank you :)

GA316 gravatar imageGA316 ( 7 years ago )

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 7 years ago

Seen: 390 times

Last updated: Mar 17 '18