From ede08ffe5cc6998f029a4b40ca612e65eaa71986 Mon Sep 17 00:00:00 2001 From: GiulioRossetti Date: Mon, 13 May 2024 09:28:29 +0200 Subject: [PATCH] :arrow_up: Louvain initial partition --- cdlib/algorithms/crisp_partition.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cdlib/algorithms/crisp_partition.py b/cdlib/algorithms/crisp_partition.py index 7b776ba9..b9d14369 100644 --- a/cdlib/algorithms/crisp_partition.py +++ b/cdlib/algorithms/crisp_partition.py @@ -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`.