Statistics
| Branch: | Revision:

iof-tools / networkxMiCe / networkx-master / networkx / algorithms / community / __init__.py @ 5cef0f13

History | View | Annotate | Download (1.15 KB)

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
    >>> import networkx as nx
9
    >>> from networkx.algorithms import community
10
    >>> G = nx.barbell_graph(5, 1)
11
    >>> communities_generator = community.girvan_newman(G)
12
    >>> top_level_communities = next(communities_generator)
13
    >>> next_level_communities = next(communities_generator)
14
    >>> sorted(map(sorted, next_level_communities))
15
    [[0, 1, 2, 3, 4], [5], [6, 7, 8, 9, 10]]
16

17
"""
18
from networkx.algorithms.community.asyn_fluid import *
19
from networkx.algorithms.community.centrality import *
20
from networkx.algorithms.community.kclique import *
21
from networkx.algorithms.community.kernighan_lin import *
22
from networkx.algorithms.community.label_propagation import *
23
from networkx.algorithms.community.modularity_max import *
24
from networkx.algorithms.community.quality import *
25
from networkx.algorithms.community.community_utils import *