diff --git a/netstruct.py b/netstruct.py index 5bb8e35..7c75fe1 100755 --- a/netstruct.py +++ b/netstruct.py @@ -164,7 +164,10 @@ def FindCommunities(fname,threshold=0.0,algorithm_num=6): 6 : leading.eigenvector.community -> returns VertexClustering object. """ area,ind,GDmatrix=loadGDmatrix(fname) - matx=stats.threshold(GDmatrix, threshmin=threshold,newval=0) # Creates an adjacency matrix with a threshold applied to GDmatrix (i.e. all values below the threshold are taken to be 0) + # matx=stats.threshold(GDmatrix, threshmin=threshold,newval=0) # Creates an adjacency matrix with a threshold applied to GDmatrix (i.e. all values below the threshold are taken to be 0) + matx = GDmatrix + matx[matx