diff --git a/README.md b/README.md
index f66666903b202acd0a09b6d72a3fbbc1ada0c86c..f2df4a12b14542c1d95bfd581c0bba8f07ba2da3 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,7 @@ The following packages are required in order to build the library:
     -   [NumPy](https://numpy.org/)
     -   [QtPy](https://github.com/spyder-ide/qtpy)
     -   [setuptools_scm](https://github.com/pypa/setuptools_scm/)
+    -   [NetworkX](https://networkx.org/)
 -   Qt 5 or 6, with Python bindings, one of:
     - pyside2
     - pyqt5
diff --git a/pyproject.toml b/pyproject.toml
index fef65a9d736b856afafcac85958ff0c18ecc5dd3..be37e866e99b80a006e3680bd42109d9ebfaf709 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -13,6 +13,7 @@ dependencies = [
     "graphviz>=0.19",
     "matplotlib",
     "setuptools_scm[toml]>=6.2",
+    "networkx",
 ]
 classifiers = [
     "Intended Audience :: Education",
diff --git a/requirements.txt b/requirements.txt
index 343973832ddda6f448d7a07353e9cf7e7a96b0cc..1a591a913fc52ebd44e66d27fd3a3694ae9baaf8 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,3 +3,4 @@ qtpy
 graphviz>=0.19
 matplotlib
 setuptools_scm[toml]>=6.2
+networkx