diff options
| author | Moradnejad <i.moradnejad@gmail.com> | 2019-02-18 13:16:42 +0330 |
|---|---|---|
| committer | Dan Schult <dschult@colgate.edu> | 2019-02-18 20:46:42 +1100 |
| commit | 2db5f8663deacc501c7472c3a60884a2ca8be45a (patch) | |
| tree | 80a0ef1bc5c0596963dfc4e65a708d67dba68004 /networkx/linalg/modularitymatrix.py | |
| parent | e02d18cbbc83e97a21a1255acd6948b19ced28a1 (diff) | |
| download | networkx-2db5f8663deacc501c7472c3a60884a2ca8be45a.tar.gz | |
Replacing `Return` to `Returns` in docs for functions (#3301)
* Fixed problem in documentation view of this function
* Replacing `Return` to `Returns` in function docs
Diffstat (limited to 'networkx/linalg/modularitymatrix.py')
| -rw-r--r-- | networkx/linalg/modularitymatrix.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networkx/linalg/modularitymatrix.py b/networkx/linalg/modularitymatrix.py index d9887891..9c4cb633 100644 --- a/networkx/linalg/modularitymatrix.py +++ b/networkx/linalg/modularitymatrix.py @@ -19,7 +19,7 @@ __all__ = ['modularity_matrix', 'directed_modularity_matrix'] @not_implemented_for('directed') @not_implemented_for('multigraph') def modularity_matrix(G, nodelist=None, weight=None): - r"""Return the modularity matrix of G. + r"""Returns the modularity matrix of G. The modularity matrix is the matrix B = A - <A>, where A is the adjacency matrix and <A> is the average adjacency matrix, assuming that the graph @@ -86,7 +86,7 @@ def modularity_matrix(G, nodelist=None, weight=None): @not_implemented_for('undirected') @not_implemented_for('multigraph') def directed_modularity_matrix(G, nodelist=None, weight=None): - """Return the directed modularity matrix of G. + """Returns the directed modularity matrix of G. The modularity matrix is the matrix B = A - <A>, where A is the adjacency matrix and <A> is the expected adjacency matrix, assuming that the graph |
