This page contains the documentation of the various member functions of the ToddCoxeter class that can be used to access the state of an instance.
Those functions with the prefix current_ do not perform any further enumeration.
|
| float | complete () const noexcept |
| | Return the proportion of edges defined in the active part of the word graph.
|
| Forest const & | current_spanning_tree () const |
| | Get the current possible spanning tree of the underlying word graph.
|
| word_graph_type const & | current_word_graph () const noexcept |
| | Get the current word graph.
|
| bool | is_standardized () const |
| | Check if the word graph is currently standardized with respect to any order.
|
| bool | is_standardized (Order val) const |
| | Check if the word graph is currently standardized with respect to a given order.
|
| uint64_t | number_of_edges_active () const noexcept |
| | Return the number of edges in the active part of the current word graph.
|
| uint64_t | number_of_large_collapses () const noexcept |
| | Return the number of large collapses that have occurred.
|
| uint64_t | number_of_nodes_active () const noexcept |
| | Return the number of nodes in the active part of the current word graph.
|
| Forest const & | spanning_tree () |
| | Get the spanning tree of the underlying word graph.
|
| Order | standardization_order () const noexcept |
| | Get the current standardization order of the underlying word graph.
|
| word_graph_type const & | word_graph () |
| | Get the word graph after performing a full congruence enumeration.
|
| word_graph_type const & current_word_graph |
( |
| ) |
const |
|
inlinenoexcept |
In some sense, the purpose of the Todd-Coxeter algorithm is to produce a WordGraph of the action of a set of generators on the classes of a congruence. This function can be used to obtain a reference to that WordGraph as it currently exists within a ToddCoxeter instance. This function does not trigger any enumeration.
The WordGraph returned by this function may be in a rather complicated state. No guarantees are given: about the values of the active nodes (i.e. they may be any non-negative integers in any order); that the number of nodes (including those that are inactive) should coincide with the number of active nodes; that the graph is complete; or that the graph is compatible with the relations of the presentation or with the generating_pairs.
The functions standardize(Order) and shrink_to_fit can be used to modify the returned word graph in-place to have (possibly) more reasonable characteristics.
- Returns
- A const reference to the underlying WordGraph.
- Exceptions
- This function is noexcept and is guaranteed never to throw.
- See also
- number_of_nodes_active
-
number_of_edges_active
| word_graph_type const & word_graph |
( |
| ) |
|
In some sense, the purpose of the Todd-Coxeter algorithm is to produce a WordGraph of the action of a set of generators on the classes of a congruence. This function can be used to obtain a reference to that WordGraph instance. This function triggers a full enumeration.
The WordGraph returned by this function may be in a rather complicated state. The active nodes (and nodes) will be \(\{0,
\ldots, n - 1\}\) where \(n\) is the number of classes in the congruence if presentation contains the empty word; or the number of classes plus one if presentation does not contain the empty word. The returned WordGraph is also short-lex standardized. The returned WordGraph will usually be complete and compatible with the relations of the presentation and with the generating_pairs. The WordGraph may not be complete or compatible for some values of the settings. For example, if the setting lower_bound is used but is not the same as the number of classes in the congruence, then the WordGraph returned by this function may not be compatible with the relations of presentation or generating_pairs.
- Returns
- A const reference to the underlying WordGraph.