Skip to content

Commit 5247f7e

Browse files
authored
Merge branch 'main' into main
2 parents a3ac9c1 + 35de4a7 commit 5247f7e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

scripts/mkdoc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ cd ${ROOT_FOLDER}
4747

4848
# Create a virtual environment
4949
if [ ! -d ".venv" ]; then
50-
python3 -m venv .venv
50+
${PYTHON:-python3} -m venv .venv
5151

5252
# Install sphinx, matplotlib, pandas, scipy, wheel and pydoctor into the venv.
5353
# doc2dash is optional; it will be installed when -d is given

src/igraph/clustering.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from copy import deepcopy
66
from io import StringIO
77

8-
from igraph._igraph import GraphBase, community_to_membership
8+
from igraph._igraph import GraphBase, community_to_membership, _compare_communities
99
from igraph.configuration import Configuration
1010
from igraph.datatypes import UniqueIdGenerator
1111
from igraph.drawing.colors import ClusterColoringPalette
@@ -1500,10 +1500,8 @@ def compare_communities(comm1, comm2, method="vi", remove_none=False):
15001500
15011501
@return: the calculated measure.
15021502
"""
1503-
import igraph._igraph
1504-
15051503
vec1, vec2 = _prepare_community_comparison(comm1, comm2, remove_none)
1506-
return igraph._igraph._compare_communities(vec1, vec2, method)
1504+
return _compare_communities(vec1, vec2, method)
15071505

15081506

15091507
def split_join_distance(comm1, comm2, remove_none=False):

0 commit comments

Comments
 (0)