Skip to content

Commit

Permalink
fix: doc index, docstring typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dPys committed Dec 7, 2024
1 parent 19105a1 commit 8958a32
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 25 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@
## Installation

```bash
git clone https://github.com/dpys/nxbench.git
cd nxbench
pip install -e .[cuda] # CUDA support is needed for CuGraph benchmarking
pip install nxbench
```

For benchmarking using CUDA-based tools like [CuGraph](https://github.com/rapidsai/cugraph):

```bash
pip install -e .[cuda]
pip install nxbench[cuda] # CUDA support is needed for CuGraph benchmarking
```

## Quick Start
Expand Down
4 changes: 3 additions & 1 deletion doc/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ API Documentation
:maxdepth: 2
:caption: Contents:

nxbench.core
nxbench
nxbench.benchmarks
nxbench.data
nxbench.data.scripts
nxbench.validation
nxbench.validation.scripts
nxbench.viz
8 changes: 0 additions & 8 deletions doc/api/nxbench.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,3 @@ nxbench.log module
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: nxbench
:members:
:undoc-members:
:show-inheritance:
4 changes: 4 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,16 @@
("py:class", "Path"),
("py:class", "Document"),
("py:class", "function"),
("py:class", "click.ClickException"),
("py:class", "pd.DataFrame"),
("py:class", "bs4.BeautifulSoup"),
]

autodoc_inherit_docstrings = False

intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
"networkx": ("https://networkx.org/documentation/stable/", None),
"pydantic": ("https://docs.pydantic.dev/latest/", None),
"numpy": ("https://numpy.org/doc/stable/", None),
Expand Down
12 changes: 5 additions & 7 deletions doc/installation.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
# Installation

Clone the repository and install the package:
PyPi:

```bash
git clone https://github.com/dpys/nxbench.git
cd nxbench
pip install -e .
pip install nxbench
```

For benchmarking using CUDA-based tools like [CuGraph](https://github.com/rapidsai/cugraph):

```bash
pip install -e .[cuda] # CUDA support is needed for CuGraph benchmarking
pip install nxbench[cuda]
```

## Development Setup

Install development dependencies:
Install development dependencies (testing and documentation):

```bash
pip install -e .[test,doc] # For testing and documentation
pip install -e .[test,doc]
```

Run tests to ensure everything is set up correctly:
Expand Down
10 changes: 5 additions & 5 deletions nxbench/validation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def validate_node_scores(
----------
result : dict
Dictionary mapping nodes to scores
graph : networkx.nx.Graph or networkx.nx.DiGraph
graph : nx.Graph or nx.DiGraph
Original graph
score_range : tuple of float, default=(0.0, 1.0)
Expected range for scores (min, max)
Expand Down Expand Up @@ -162,7 +162,7 @@ def validate_communities(
----------
result : list of sets
List of node sets representing communities
graph : networkx.nx.Graph or networkx.nx.DiGraph
graph : nx.Graph or nx.DiGraph
Original graph
allow_overlap : bool, default=False
Whether communities can overlap
Expand Down Expand Up @@ -230,7 +230,7 @@ def validate_path_lengths(
result : dict of dict
Dictionary mapping source nodes to dictionaries mapping target nodes to
distances
graph : networkx.nx.Graph or networkx.nx.DiGraph
graph : nx.Graph or nx.DiGraph
Original graph
check_symmetry : bool, default=False
Whether to verify that distances are symmetric (for undirected graphs)
Expand Down Expand Up @@ -296,7 +296,7 @@ def validate_flow(
----------
result : tuple
(flow_value, flow_dict) tuple from max flow algorithm
graph : networkx.nx.Graph or networkx.nx.DiGraph
graph : nx.Graph or nx.DiGraph
Original graph
check_conservation : bool, default=True
Whether to verify flow conservation at all nodes
Expand Down Expand Up @@ -407,7 +407,7 @@ def validate_similarity_scores(
----------
result : iterable of tuples
(node_u, node_v, score) tuples from similarity measure
graph : networkx.nx.Graph or networkx.nx.DiGraph
graph : nx.Graph or nx.DiGraph
Original graph
score_range : tuple of float, default=(0.0, 1.0)
Expected range for similarity scores
Expand Down

0 comments on commit 8958a32

Please sign in to comment.