Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/networkx/algorithms/community/__init__.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 """Functions for computing and measuring community structure. | |
2 | |
3 The functions in this class are not imported into the top-level | |
4 :mod:`networkx` namespace. You can access these functions by importing | |
5 the :mod:`networkx.algorithms.community` module, then accessing the | |
6 functions as attributes of ``community``. For example:: | |
7 | |
8 >>> from networkx.algorithms import community | |
9 >>> G = nx.barbell_graph(5, 1) | |
10 >>> communities_generator = community.girvan_newman(G) | |
11 >>> top_level_communities = next(communities_generator) | |
12 >>> next_level_communities = next(communities_generator) | |
13 >>> sorted(map(sorted, next_level_communities)) | |
14 [[0, 1, 2, 3, 4], [5], [6, 7, 8, 9, 10]] | |
15 | |
16 """ | |
17 from networkx.algorithms.community.asyn_fluid import * | |
18 from networkx.algorithms.community.centrality import * | |
19 from networkx.algorithms.community.kclique import * | |
20 from networkx.algorithms.community.kernighan_lin import * | |
21 from networkx.algorithms.community.label_propagation import * | |
22 from networkx.algorithms.community.lukes import * | |
23 from networkx.algorithms.community.modularity_max import * | |
24 from networkx.algorithms.community.quality import * | |
25 from networkx.algorithms.community.community_utils import * |