Skip to content

Commit

Permalink
Merge pull request #92 from MengLiuPurdue/master
Browse files Browse the repository at this point in the history
fix wrong warning message
  • Loading branch information
MengLiuPurdue committed Mar 28, 2019
2 parents 464275a + affef18 commit 6c37e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion localgraphclustering/spectral_clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 6c37e35

Please sign in to comment.