Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Plotting a Cayley graph

I want to plot a Cayley graph that its connection set is derangements. I mean https://doc.sagemath.org/html/en/reference/combinat/sage/combinat/derangements.html

I wrote this code, but it fails to run.

G = SymmetricGroup(3)
CG = G.cayley_graph(generators = Derangements(3))
CGU = CG.to_undirected()
CGU.show()

Could you please give me help?