Skip to content

Commit 880d0c1

Browse files
committed
add read the docs documentation
1 parent b11af29 commit 880d0c1

21 files changed

+510
-0
lines changed

.readthedocs.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: "2"
2+
3+
build:
4+
os: "ubuntu-22.04"
5+
tools:
6+
python: "3.10"
7+
8+
python:
9+
install:
10+
- requirements: docs/requirements.txt
11+
12+
sphinx:
13+
configuration: docs/conf.py

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_build/

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/api/builder.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Graph Builder
2+
=============
3+
4+
EvenRegularGraphBuilder
5+
***********************
6+
7+
The class `EvenRegularGraphBuilder` is used to construct search graphs.
8+
9+
.. autoclass:: deglib.builder.EvenRegularGraphBuilder
10+
:members:
11+
:undoc-members:
12+
:show-inheritance:
13+
:member-order: bysource
14+
15+
.. _build_from_data:
16+
17+
build_from_data()
18+
*****************
19+
.. autofunction:: deglib.builder.build_from_data
20+

docs/api/graphs/index.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Overview Graphs
2+
===============
3+
4+
The following graph classes are defined:
5+
6+
* SearchGraph: An abstract interface for all graph classes.
7+
* MutableGraph: An abstract base class, that can change by adding/removing vertices.
8+
* SizeBoundedGraph: An implementation of the `MutableGraph`-class.
9+
* ReadOnlyGraph: Once a `MutableGraph` is built, you can instantiate a `ReadOnlyGraph` from it.
10+
11+
.. toctree::
12+
:maxdepth: 2
13+
:caption: Graph classes:
14+
15+
search_graph
16+
mutable_graph
17+
read_only_graph
18+
size_bounded_graph

docs/api/graphs/mutable_graph.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
MutableGraph
2+
============
3+
4+
The MutableGraph is an abstract base class, that allows modifications and additions to the graph.
5+
It is used to build graphs.
6+
`SizeBoundedGraph` is a subclass.
7+
8+
.. autoclass:: deglib.graph.MutableGraph
9+
:members:
10+
:undoc-members:
11+
:show-inheritance:
12+
:exclude-members: to_cpp
13+
:member-order: bysource
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ReadOnlyGraph
2+
=============
3+
4+
The ReadOnlyGraph can not be modified. It is usually created using a `MutableGraph`.
5+
6+
.. autoclass:: deglib.graph.ReadOnlyGraph
7+
:members:
8+
:undoc-members:
9+
:show-inheritance:
10+
:exclude-members: to_cpp
11+
:member-order: bysource
12+
13+
.. autofunction:: deglib.graph.load_readonly_graph

docs/api/graphs/search_graph.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.. _search_graph:
2+
3+
SearchGraph
4+
===========
5+
6+
The SearchGraph class defines an abstract interface for all graph classes.
7+
8+
.. autoclass:: deglib.graph.SearchGraph
9+
:members:
10+
:undoc-members:
11+
:show-inheritance:
12+
:exclude-members: to_cpp
13+
:member-order: bysource
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SizeBoundedGraph
2+
================
3+
4+
The SizeBoundedGraph class is an implementation for `MutableGraph` and is used to build graphs.
5+
6+
.. autoclass:: deglib.graph.SizeBoundedGraph
7+
:members:
8+
:undoc-members:
9+
:show-inheritance:
10+
:exclude-members: to_cpp
11+
:member-order: bysource

docs/api/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
API
2+
===
3+
4+
This is the API Documentation for the deglib project.
5+
6+
.. toctree::
7+
:maxdepth: 2
8+
:caption: Contents:
9+
10+
graphs/index
11+
builder

0 commit comments

Comments
 (0)