Skip to content

Commit

Permalink
Updates per style check
Browse files Browse the repository at this point in the history
  • Loading branch information
jwyles committed Aug 12, 2020
1 parent 38408b9 commit 3d30eb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/cugraph/tests/test_leiden.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@

with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
import community
import networkx as nx


print("Networkx version : {} ".format(nx.__version__))
Expand All @@ -50,6 +48,7 @@ def cugraph_leiden(cu_M, edgevals=False):

return parts, mod


def cugraph_louvain(cu_M, edgevals=False):

G = cugraph.Graph()
Expand All @@ -65,6 +64,7 @@ def cugraph_louvain(cu_M, edgevals=False):

return parts, mod


@pytest.mark.parametrize("graph_file", utils.UNRENUMBERED_DATASETS)
def test_louvain(graph_file):
gc.collect()
Expand All @@ -74,4 +74,4 @@ def test_louvain(graph_file):
louvain_parts, louvain_mod = cugraph_louvain(cu_M, edgevals=True)

# Calculating modularity scores for comparison
assert leiden_mod >= louvain_mod
assert leiden_mod >= louvain_mod

0 comments on commit 3d30eb0

Please sign in to comment.