Skip to content

Commit 6b8acef

Browse files
committed
Tweak minor pieces for v1.3.0 release
1 parent 11eef90 commit 6b8acef

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

docs/index.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. ModularityPruning documentation master file, created by
2-
sphinx-quickstart on Tue Jun 16 12:28:29 2020.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
2+
sphinx-quickstart on Tue Jun 16 12:28:29 2020.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
55

66
Welcome to ModularityPruning's documentation!
77
=============================================
@@ -12,10 +12,10 @@ perspective of stochastic block model inference.
1212
This method works for single-layer and multi-layer networks, as well as for restricting focus to a fixed number of
1313
communities when desired.
1414

15-
Prior to version v1.3, we used the Louvain algorithm for modularity maximization instead of Leiden. The deprecated
16-
module `modularitypruning.louvain_utilities` now shims single-layer functions to their corresponding Leiden versions in
17-
`modularitypruning.leiden_utilities` (though it still contains the legacy multi-layer functions since they can be
18-
faster in general).
15+
Prior to version v1.3.0, we used the Louvain algorithm for modularity maximization instead of Leiden. The deprecated
16+
module ``modularitypruning.louvain_utilities`` now shims single-layer functions to their corresponding Leiden versions
17+
in ``modularitypruning.leiden_utilities`` (though it still contains the legacy multi-layer functions since they can be
18+
faster in general -- leidenalg does not efficiently implement multilayer optimization).
1919

2020
.. toctree::
2121
source/installation

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='modularitypruning',
12-
version='1.2.3',
12+
version='1.3.0',
1313
package_dir={'modularitypruning': 'utilities'},
1414
packages=['modularitypruning'],
1515
url='https://github.com/ragibson/ModularityPruning',

tests/test_temporal_multilevel_parameter_estimation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def assert_temporal_SBM_correct_convergence(self, first_layer_membership, copyin
6060

6161
def test_temporal_SBM_correct_convergence_varying_copying_probabilty(self):
6262
for eta in [0.25, 0.5, 0.75, 0.9]:
63-
membership = generate_random_partition(num_nodes=100, K=2)
63+
membership = generate_random_partition(num_nodes=250, K=2)
6464
self.assert_temporal_SBM_correct_convergence(copying_probability=eta, first_layer_membership=membership)
6565

6666
def test_temporal_SBM_correct_convergence_varying_p_in(self):

utilities/leiden_utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def split_intralayer_leiden_graph(G_intralayer, layer_membership):
7777
:return: list of intralayer networks
7878
:rtype: list[igraph.Graph]
7979
"""
80-
warnings.warn("You are using Leiden multilayer modularity optimization, "
81-
"which is inefficiently implemented by leidenalg. THIS CAN BE EXTREMELY SLOW!")
80+
warnings.warn("You are using Leiden multilayer modularity optimization. THIS CAN BE EXTREMELY SLOW! "
81+
"leidenalg's implementation is inefficient, especially when there are many layers.")
8282
T = max(layer_membership) + 1
8383

8484
G_split_layers_list = []

utilities/louvain_utilities.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
"""
22
This is a deprecated version of leiden_utilities. Usage will be shimmed to use Leiden instead of Louvain when possible.
33
4-
The primary exceptions are the multilayer functions since leidenalg does not properly implement multilayer optimization.
4+
Prior to version v1.3.0, we used the Louvain algorithm for modularity maximization instead of Leiden. The deprecated
5+
module ``modularitypruning.louvain_utilities`` now shims single-layer functions to their corresponding Leiden versions
6+
in ``modularitypruning.leiden_utilities`` (though it still contains the legacy multi-layer functions since they can be
7+
faster in general -- leidenalg does not efficiently implement multilayer optimization).
58
"""
69
from . import leiden_utilities
710
from .leiden_utilities import sorted_tuple, LOW_MEMORY_THRESHOLD

0 commit comments

Comments
 (0)