choreo.ActionSym.BuildCayleyGraph#
- static ActionSym.BuildCayleyGraph(Py_ssize_t nbody, Py_ssize_t geodim, list GeneratorList=[], Py_ssize_t max_layers=1000, bool add_edge_data=False)#
Builds the Cayley graph of a list of group generators.
- Parameters:
nbody (
int
) – Number of bodies in the system.geodim (
int
) – Dimension of ambiant space.GeneratorList (
list
ofchoreo.ActionSym
, optional) – List of generators, by default [].max_layers (
int
, optional) – Maximum number of layers in the graph before raising an error, by default 1000.add_edge_data (
bool
, optional) – Whether to add the generator to edges of the graph, by defaultFalse
.
- Returns:
The Cayley graph.
- Return type:
- Raises:
ValueError – If the number of layers in the graph is larger than
max_layers
.