Section3.1Cayley Graphs
If \(G\) is a group and \(C\sbs G\) (i.e., a list of some elements of \(G\)), then we can produce the Cayley graph \(X(G,C)\):
The output is a directed graph, even if \(C\) is inverse-closed; in the latter case we can convert \(G\) to a graph by
Note that \(C\) is not required to generate \(G\). There are a number of keywords to this command (for example, side and simple) but I cannot follow their documentation and so I do not know what they do.
Note that the Graph() command makes it easy to construct Cayley graphs ourselves. For example, a cubelike graph is a Cayley graph for \(GF(2)^d\). We can construct them using Graph().
Here vector_list is a list of 01-vectors of length \(d\).
For a general group, we can use the following construction to create an undirected Cayley graph.
This will produce an incorrect result if \(C\) is not inverse-closed.
Sage provides access to GAP, and hence access to any group that is in GAP or can be constructed in GAP. Be warned that the documentation for GAP probably outweighs that for Sage.