This page contains documentation related to converting a libsemigroups object into WordGraph instances.
- Note
- The class template WordGraph is used extensively throughout
libsemigroups, and many of the main algorithms involve constructing a WordGraph. These WordGraph objects are usually accessed via a member function word_graph or current_word_graph. The `to` function is only for conversion between different types that represent (in some sense at least) equivalent mathematical objects.
- See also
- The `to` function for an overview of possible conversions between
libsemigroups types.
◆ to() [1/2]
template<template< typename... > typename Result>
Defined in to-word-graph.hpp
Despite the hideous signature, this function should be invoked as follows:
auto to(detail::KnuthBendixImpl< Rewriter, ReductionOrder > &kb) -> std::enable_if_t< std::is_same_v< Presentation< typename Result::word_type >, Result >, Result >
No doc.
where f is a Forest object. The returned WordGraph object is isomorphic as a graph to f.
- Template Parameters
-
- Parameters
-
| f | the Forest instance to convert. |
- Returns
- A WordGraph instance isomorphic to
f.
◆ to() [2/2]
template<template< typename... > typename Result, typename Node>