summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorJangwon Yie <kleinaberoho10@gmail.com>2020-07-08 13:48:09 +0900
committerGitHub <noreply@github.com>2020-07-08 00:48:09 -0400
commit36b3f1446a13fe6b9a48fcf749b5e4fae7da0005 (patch)
tree651e8f7821b727184a03a8e29483a231a8d51114 /doc/reference
parentc172c9b2f12cfe71905ce9426aaaf6c0b2db0c4e (diff)
downloadnetworkx-36b3f1446a13fe6b9a48fcf749b5e4fae7da0005.tar.gz
Add an implementation for interval_graph and its unit tests (#3705)
* Add an implementation for interval_graph and its unit tests * Fix violations of pep8 convetions for #3705 * Fix PEP8 * reflect comments for #3705 * Fix PEP8 and remove docstring tests * fix PEP8 * minor changes in style None is not checked as input. validation done inline. test graphs created quicker. added isolated node to one test. * Add test and correct logic of overlapping intervals * minor formating of tests and doc * last code tightening. should be ready * Fix the bugs I just introduced... * sorted the edges so all systems pass test Co-authored-by: Dan Schult <dschult@colgate.edu>
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/generators.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/reference/generators.rst b/doc/reference/generators.rst
index 89cd41fd..e05e89f7 100644
--- a/doc/reference/generators.rst
+++ b/doc/reference/generators.rst
@@ -344,10 +344,18 @@ Cographs
random_cograph
+Interval Graph
+---------------
+.. automodule:: networkx.generators.interval_graph
+.. autosummary::
+ :toctree: generated/
+
+ interval_graph
+
Sudoku
------
.. automodule:: networkx.generators.sudoku
.. autosummary::
:toctree: generated/
- sudoku_graph
+ sudoku_graph \ No newline at end of file