From affef181a0cf1da5413845133420e9d882ff8348 Mon Sep 17 00:00:00 2001 From: Meng Liu Date: Thu, 28 Mar 2019 13:21:49 -0400 Subject: [PATCH] fix wrong warning message --- localgraphclustering/spectral_clustering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localgraphclustering/spectral_clustering.py b/localgraphclustering/spectral_clustering.py index 840e564..d956dde 100644 --- a/localgraphclustering/spectral_clustering.py +++ b/localgraphclustering/spectral_clustering.py @@ -91,7 +91,7 @@ def spectral_clustering(G, ref_nodes, Stores the value of the best conductance found by the last called rounding procedure. """ - if G._weighted and method != "acl_weighted": + if G._weighted and method not in ["acl_weighted","l1reg","l1reg-rand"]: warnings.warn("The weights of the graph will be discarded. Use approximate_PageRank_weighted instead if you want to keep the edge weights.") if method == "acl" or method == "acl_weighted" or method == "l1reg" or method == "l1reg-rand":