Skip to content

Commit 5f100af

Browse files
author
CindeeM
committed
DOC: update weightedpartition doc string
1 parent 6284811 commit 5f100af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

brainx/weighted_modularity.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ def __init__(self, graph, communities=None):
1818
Parameters
1919
----------
2020
graph : networkx graph
21-
2221
communities : list of sets, optional
2322
a list of sets with nodes in each set
2423
if communities is None, will initialize with
2524
one per node
25+
26+
Returns
27+
-------
28+
part : WeightedPartition object
2629
"""
2730
# assert graph has edge weights, and no negative weights
2831
mat = nx.adjacency_matrix(graph)

0 commit comments

Comments
 (0)