Skip to content

Commit

Permalink
⬆️ Louvain initial partition
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRossetti committed May 13, 2024
1 parent 04d3f0d commit ede08ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cdlib/algorithms/crisp_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,7 @@ def louvain(
========== ======== ========
:param g_original: a networkx/igraph object
:param partition : dict, optional the algorithm will start using this partition of the nodes.
It's a dictionary where keys are their nodes and values the communities
:param partition : NodeClustering object, optional the algorithm will start using this partition of the nodes.
:param weight: str, optional the key in graph to use as weight. Default to 'weight'
:param resolution: double, optional Will change the size of the communities, default to 1.
:param randomize: int, RandomState instance or None, optional (default=None). If int, random_state is the seed used by the random number generator; If RandomState instance, random_state is the random number generator; If None, the random number generator is the RandomState instance used by `np.random`.
Expand Down

0 comments on commit ede08ff

Please sign in to comment.