Skip to content

Commit ae8fd41

Browse files
forest: add PathsToRoots
1 parent 197ec71 commit ae8fd41

6 files changed

Lines changed: 629 additions & 106 deletions

File tree

docs/source/_ext/libsemigroups_pybind11_extensions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ def no_doc_run(self):
115115
"RepOrc": [
116116
("SimsSettingsRepOrc", "RepOrc"),
117117
],
118+
"PathsToRoots": [("forest_PathsFromToRootsCommon", "PathsToRoots")],
119+
"PathsFromRoots": [("forest_PathsFromToRootsCommon", "PathsFromRoots")],
118120
}
119121

120122
# This dictionary should be of the form bad_string -> good_string. These
@@ -462,8 +464,8 @@ def document_class(app, what, name, obj, options, lines):
462464
2. :returns:
463465
3. :rtype:
464466
4. :raises:
465-
5. :complexity:
466-
6. .. note::
467+
5. :complexity:
468+
6. .. note::
467469
7. .. warning::
468470
8. .. seealso::
469471
9. .. doctest::
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
..
2+
Copyright (c) 2024 J. D. Mitchell
3+
4+
Distributed under the terms of the GPL license version 3.
5+
6+
The full license is in the file LICENSE, distributed with this software.
7+
8+
Forest helpers
9+
==============
10+
11+
This page contains the documentation for various helper classes and functions
12+
for manipulating :any:`Forest` objects. All such classes and functions
13+
are in the submodule ``forest``.
14+
15+
Contents
16+
--------
17+
18+
.. currentmodule:: libsemigroups_pybind11.forest
19+
20+
.. autosummary::
21+
:signatures: short
22+
23+
PathsFromRoots
24+
PathsToRoots
25+
depth
26+
dot
27+
is_root
28+
max_label
29+
path_from_root
30+
path_to_root
31+
32+
33+
Full API
34+
--------
35+
36+
.. currentmodule:: libsemigroups_pybind11
37+
38+
.. automodule:: libsemigroups_pybind11.forest
39+
:members:
40+
:imported-members:
41+
:inherited-members:
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
..
2+
Copyright (c) 2024 J. D. Mitchell
3+
4+
Distributed under the terms of the GPL license version 3.
5+
6+
The full license is in the file LICENSE, distributed with this software.
7+
8+
WordGraph helpers
9+
=================
10+
11+
This page contains the documentation for various helper functions for
12+
manipulating word graphs.
13+
14+
Contents
15+
--------
16+
17+
.. currentmodule:: libsemigroups_pybind11.word_graph
18+
19+
.. autosummary::
20+
:signatures: short
21+
22+
add_cycle
23+
adjacency_matrix
24+
dot
25+
equal_to
26+
follow_path
27+
is_acyclic
28+
is_compatible
29+
is_complete
30+
is_connected
31+
is_reachable
32+
is_strictly_cyclic
33+
last_node_on_path
34+
nodes_reachable_from
35+
number_of_nodes_reachable_from
36+
random_acyclic
37+
spanning_tree
38+
standardize
39+
topological_sort
40+
41+
Full API
42+
--------
43+
44+
.. currentmodule:: libsemigroups_pybind11
45+
46+
.. automodule:: libsemigroups_pybind11.word_graph
47+
:members:
48+
:imported-members:

0 commit comments

Comments
 (0)