This page collects various classes and functions related to word graphs in libsemigroups. 
◆ format()
template<typename FormatContext> 
 
This is the format function of a custom formatter for fmt and the libsemigroups::Forest class.
The intention is to provide a string representation that could be used to reconstruct the libsemigroups::Forest object. For a more human readable representation see to_human_readable_repr.
- Template Parameters
 - 
  
    | FormatContext | the type of the context provided in the second argument. | 
  
   
- Parameters
 - 
  
    | f | the forest to format.  | 
    | ctx | the format context. | 
  
   
- Returns
 - The formatted string representation of 
f.  
 
 
◆ operator<<()
Output the edges of a wordGraph to a stream.
This function outputs the word graph wg to the stream os. The word graph is represented by the out-neighbours of each node ordered according to their labels. The symbol - is used to denote that an edge is not defined. For example, the word graph with 1 node, out-degree 2, and a single loop labelled 1 from node 0 to 0 is represented as {{-, 0}}.
- Parameters
 - 
  
    | os | the ostream.  | 
    | wg | the word graph. | 
  
   
- Returns
 - The first parameter 
os. 
- Exceptions
 - This function guarantees not to throw a LibsemigroupsException. 
 
 
 
◆ to_human_readable_repr() [1/3]
Return a human readable representation of a Joiner object.
- Parameters
 - 
  
  
 
- Returns
 - A string containing the representation.
 
- Exceptions
 - This function guarantees not to throw a LibsemigroupsException. 
 
 
 
◆ to_human_readable_repr() [2/3]
Return a human readable representation of a Meeter object.
- Parameters
 - 
  
  
 
- Returns
 - A string containing the representation.
 
- Exceptions
 - This function guarantees not to throw a LibsemigroupsException. 
 
 
 
◆ to_human_readable_repr() [3/3]
Return a human readable representation of a WordGraph object.
- Template Parameters
 - 
  
    | Node | the type of the nodes in the underlying WordGraph. | 
  
   
- Parameters
 - 
  
  
 
- Returns
 - A string containing the representation.
 
- Exceptions
 - This function guarantees not to throw a LibsemigroupsException. 
 
 
 
◆ to_input_string()
This function returns a std::string containing the input required to construct a copy of the argument wg.
- Template Parameters
 - 
  
    | Node | the type of the nodes of wg.  | 
  
   
- Parameters
 - 
  
    | wg | the word graph.  | 
    | prefix | a prefix for the returned string (defaults to an empty string).  | 
    | braces | the braces to use in the string (defaults to "{}").  | 
    | suffix | a suffix for the returned string (defaults to an empty string). | 
  
   
- Returns
 - A string containing the input required to recreate 
wg. 
- Exceptions
 - 
  
  
 
 
 
◆ IsWordGraph
The value of this variable is true if the template parameter Thing is WordGraph for any template parameters.
- Template Parameters
 - 
  
  
 
- Warning
 - This alias is deprecated and will be removed from 
libsemigroups in v4, please use is_specialization_of_v<Thing, WordGraph> instead.