ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 17 Mar 2018 05:52:49 -0500power graph of a grouphttp://ask.sagemath.org/question/41597/power-graph-of-a-group/ 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.Sat, 17 Mar 2018 05:34:35 -0500http://ask.sagemath.org/question/41597/power-graph-of-a-group/Answer by vdelecroix for <p>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.</p>
<p>I am wondering the notion of power graph of a group has been implemented in sage?</p>
<p>Kindly share your views.</p>
<p>Thank you.</p>
http://ask.sagemath.org/question/41597/power-graph-of-a-group/?answer=41598#post-id-41598This 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())])Sat, 17 Mar 2018 05:42:35 -0500http://ask.sagemath.org/question/41597/power-graph-of-a-group/?answer=41598#post-id-41598Comment by GA316 for <p>This can easily be constructed as follows</p>
<pre><code>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())])
</code></pre>
http://ask.sagemath.org/question/41597/power-graph-of-a-group/?comment=41600#post-id-41600Thank you :)Sat, 17 Mar 2018 05:52:49 -0500http://ask.sagemath.org/question/41597/power-graph-of-a-group/?comment=41600#post-id-41600