@@ -52,8 +52,7 @@ namespace libsemigroups {
5252 py::class_<Stephen_, Runner> stephen (m,
5353 name.c_str (),
5454 R"pbdoc(
55- Class template for constructing a word graph of left factors of a word in an
56- f.p. semigroup.
55+ Class template for constructing a word graph of left factors a word in a f.p. semigroup.
5756
5857This page describes the class :any:`StephenPresentationWords` which implements Stephen's
5958procedure for constructing the :any:`WordGraph` corresponding to the left
@@ -115,7 +114,7 @@ This function gets the accept state of the word graph. Running this function
115114triggers the algorithm implemented in this class (if it hasn't been triggered
116115already), and then returns the accept state of the produced word graph.
117116
118- :returns: A :any:`node_type` .
117+ :returns: the node .
119118:rtype: node_type
120119
121120:raises LibsemigroupsError:
@@ -261,8 +260,7 @@ This function sets the word whose left factors, or equivalent words, are sought.
261260
262261:raises LibsemigroupsError:
263262 if any of the values pointed at by the iterators
264- is out of range, i.e. they do not belong to ``presentation().alphabet()``
265- and ``Presentation::validate_word`` throws.
263+ is out of range, i.e. they do not belong to ``presentation().alphabet()``.
266264)pbdoc" );
267265 stephen.def (" word" ,
268266 &Stephen_::word,
@@ -299,7 +297,7 @@ class is not triggered by calls to this function.
299297 R"pbdoc(
300298Get the initial state of the word graph.
301299
302- :returns: A :any:`node_type` .
300+ :returns: the node .
303301:rtype: node_type
304302)pbdoc" );
305303
@@ -319,12 +317,12 @@ word ``w`` labels a path in
319317:any:`StephenPresentationWords.word_graph` with source ``0`` and target
320318:any:`StephenPresentationWords.accept_state`.
321319
322- For a :any:`StephenPresentationWords` instance constructed from a :any:`Presentation `,
320+ For a :any:`StephenPresentationWords` instance constructed from a :any:`PresentationStrings `,
323321a word ``w`` is accepted if and
324322only if ``w`` is equivalent to :any:`StephenPresentationWords.word` in the semigroup defined by
325323:any:`StephenPresentationWords.presentation`.
326324
327- For a :any:`StephenPresentationWords` instance constructed from a :any:`InversePresentation `,
325+ For a :any:`StephenPresentationWords` instance constructed from a :any:`InversePresentationStrings `,
328326a word ``w`` is accepted
329327if and only if :math:`uu^{-1}w` is equivalent to :math:`u` in the semigroup
330328defined by :any:`StephenPresentationWords.presentation`, where :math:`u` is the value of
@@ -369,7 +367,7 @@ Return a :any:`Dot` object representing the underlying word graph of the :any:`S
369367 R"pbdoc(
370368:sig=(s: StephenPresentationWords, w: List[int]) -> bool:
371369:only-document-once:
372- Check if a word is a left factor of Stephen:: word.
370+ Check if a word is a left factor of :any:`StephenPresentationWords. word` .
373371
374372This function triggers the algorithm implemented in this class (if it hasn't
375373been triggered already), and then returns ``True`` if the input
@@ -403,7 +401,7 @@ in :any:`StephenPresentationWords.word_graph` with source ``0``.
403401 R"pbdoc(
404402:sig=(s: StephenPresentationWords) -> Paths:
405403:only-document-once:
406- Returns a :any:`Paths` object containing all the words (in short-lex order) that are left factors of Stephen:: word.
404+ Returns a :any:`Paths` object containing all the words (in short-lex order) that are left factors of :any:`StephenPresentationWords. word` .
407405
408406This function triggers the algorithm implemented in this class (if it hasn't been triggered already).
409407
@@ -435,8 +433,8 @@ Returns the number of left factors with length in a given range.
435433This function returns the number of left factors of the
436434:any:`StephenPresentationWords.word` in the instance ``s`` with
437435length between ``min`` and ``max`` . This is the same as the number
438- of paths in :any:`StephenPresentationWords.word_graph` (if
439- :any:`StephenPresentationWords .run` has been called) with source
436+ of paths in :any:`StephenPresentationWords.word_graph` (if the inherited
437+ :any:`Runner .run` method of ``s` ` has been called) with source
440438``0`` and length in the range ``min`` to ``max``.
441439
442440:param s: the Stephen instance.
@@ -476,11 +474,11 @@ in :any:`StephenPresentationWords.word_graph` with source ``0``, target
476474:any:`StephenPresentationWords.accept_state`, and length in the
477475range ``min`` to ``max``.
478476
479- For a :any:`StephenPresentationWords` instance constructed from a :any:`Presentation `
477+ For a :any:`StephenPresentationWords` instance constructed from a :any:`PresentationStrings `
480478this is the same as the number of words that are equivalent to
481- Stephen:: word with length between ``min`` and ``max``.
479+ :any:`StephenPresentationWords. word` with length between ``min`` and ``max``.
482480
483- For a :any:`StephenPresentationWords` instance constructed from a :any:`InversePresentation `,
481+ For a :any:`StephenPresentationWords` instance constructed from a :any:`InversePresentationStrings `,
484482this is the same as the number of words ``w`` such that
485483:math:`uu^{-1}w` is equivalent to :math:`u` in the semigroup
486484defined by :any:`StephenPresentationWords.presentation`, where :math:`u` is the value of
0 commit comments