Skip to content

Commit

Permalink
Merge branch 'dev' into standardize-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo authored Nov 6, 2020
2 parents db49d01 + 35eeb90 commit facdcc3
Show file tree
Hide file tree
Showing 11 changed files with 796 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"anytree": ("https://anytree.readthedocs.io/en/latest/", None),
"hyppo": ("https://hyppo.neurodata.io", None),
"matplotlib": ("https://matplotlib.org", None),
"networkx": ("https://networkx.org/documentation/stable", None),
"numpy": ("https://numpy.org/doc/stable", None),
"python": ("https://docs.python.org/3", None),
"scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
Expand Down
1 change: 1 addition & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Reference
match
subgraph
align
preprocessing
43 changes: 43 additions & 0 deletions docs/reference/preprocessing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Preprocessing
=============

.. currentmodule:: graspologic.preprocessing

Graph Cuts
----------

Constants
^^^^^^^^^
.. py:data:: LARGER_THAN_INCLUSIVE
Cut any edge or node > the ``cut_threshold``

.. py:data:: LARGER_THAN_EXCLUSIVE
Cut any edge or node >= the ``cut_threshold``

.. py:data:: SMALLER_THAN_INCLUSIVE
Cut any edge or node < the ``cut_threshold``

.. py:data:: SMALLER_THAN_EXCLUSIVE
Cut any edge or node <= the ``cut_threshold``

Classes
^^^^^^^
.. autoclass:: DefinedHistogram

Functions
^^^^^^^^^
.. autofunction:: cut_edges_by_weight

.. autofunction:: cut_vertices_by_betweenness_centrality

.. autofunction:: cut_vertices_by_degree_centrality

.. autofunction:: histogram_betweenness_centrality

.. autofunction:: histogram_degree_centrality

.. autofunction:: histogram_edge_weight
1 change: 1 addition & 0 deletions graspologic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import graspologic.embed
import graspologic.inference
import graspologic.models
import graspologic.preprocessing
import graspologic.plot
import graspologic.simulations
import graspologic.subgraph
Expand Down
23 changes: 23 additions & 0 deletions graspologic/preprocessing/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.

from .graph_cuts import (
DefinedHistogram,
histogram_betweenness_centrality,
histogram_degree_centrality,
histogram_edge_weight,
cut_edges_by_weight,
cut_vertices_by_betweenness_centrality,
cut_vertices_by_degree_centrality,
)


__all__ = [
"DefinedHistogram",
"histogram_betweenness_centrality",
"histogram_degree_centrality",
"histogram_edge_weight",
"cut_edges_by_weight",
"cut_vertices_by_betweenness_centrality",
"cut_vertices_by_degree_centrality",
]
Loading

0 comments on commit facdcc3

Please sign in to comment.