diff options
author | Jeffrey Finkelstein <jeffrey.finkelstein@gmail.com> | 2016-04-20 17:43:07 -0400 |
---|---|---|
committer | Jeffrey Finkelstein <jeffrey.finkelstein@gmail.com> | 2016-04-20 17:43:07 -0400 |
commit | 1ad69ee435e3959eba505b2789d7deabc1f8fcba (patch) | |
tree | 8eebfbcac4d4f91b4aba3de0f8b3caad193bea91 | |
parent | d26d5e4de3a7a7fa609f56295dd8537bccffccd9 (diff) | |
download | networkx-1ad69ee435e3959eba505b2789d7deabc1f8fcba.tar.gz |
Adds missing __all__ attributes.
-rw-r--r-- | networkx/algorithms/community/asyn_lpa.py | 2 | ||||
-rw-r--r-- | networkx/algorithms/community/community_generators.py | 2 | ||||
-rw-r--r-- | networkx/algorithms/community/community_utils.py | 2 | ||||
-rw-r--r-- | networkx/algorithms/community/kernighan_lin.py | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/networkx/algorithms/community/asyn_lpa.py b/networkx/algorithms/community/asyn_lpa.py index 880e6515..06a60ff8 100644 --- a/networkx/algorithms/community/asyn_lpa.py +++ b/networkx/algorithms/community/asyn_lpa.py @@ -9,6 +9,8 @@ import random from networkx.utils import groups +__all__ = ['asyn_lpa_communities'] + def asyn_lpa_communities(G, weight=None): """Returns communities in `G` as detected by asynchronous label diff --git a/networkx/algorithms/community/community_generators.py b/networkx/algorithms/community/community_generators.py index b0c4e91e..3cdb948b 100644 --- a/networkx/algorithms/community/community_generators.py +++ b/networkx/algorithms/community/community_generators.py @@ -43,6 +43,8 @@ except ImportError: import networkx as nx +__all__ = ['LFR_benchmark_graph'] + def _zipf_rv_below(gamma, xmin, threshold): """Returns a random value chosen from the Zipf distribution, diff --git a/networkx/algorithms/community/community_utils.py b/networkx/algorithms/community/community_utils.py index a1f81bc3..21cc8b76 100644 --- a/networkx/algorithms/community/community_utils.py +++ b/networkx/algorithms/community/community_utils.py @@ -12,6 +12,8 @@ # information. """Helper functions for community-finding algorithms.""" +__all__ = ['is_partition'] + def is_partition(G, communities): """Return True if and only if `communities` is a partition of diff --git a/networkx/algorithms/community/kernighan_lin.py b/networkx/algorithms/community/kernighan_lin.py index 429added..c2035079 100644 --- a/networkx/algorithms/community/kernighan_lin.py +++ b/networkx/algorithms/community/kernighan_lin.py @@ -22,6 +22,8 @@ import networkx as nx from networkx.utils import not_implemented_for from .community_utils import is_partition +__all__ = ['kernighan_lin_bisection'] + def _compute_delta(G, A, B, weight): # helper to compute initial swap deltas for a pass |