Skip to content

Commit b59702c

Browse files
authored
Update mcl.py
1 parent 850ac84 commit b59702c

File tree

1 file changed

+3
-3
lines changed
  • Markov_Clustering_Algorithm

1 file changed

+3
-3
lines changed

Markov_Clustering_Algorithm/mcl.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import re
33
import sklearn.preprocessing
44
from scipy.sparse import csr_matrix
5-
from scipy.sparse import dok_matrix
65
from scipy.sparse import random
76

87
np.set_printoptions(suppress=True)
@@ -97,9 +96,10 @@ def prune(matrix, dimensions):
9796

9897
#THIS IS TO BE CALLED
9998
def mcl_algorithm(matrix, dimensions):
100-
selfLoop(matrix, dimensions)
99+
#selfLoop(matrix, dimensions)
101100

102-
sp_matrix_orig = csr_matrix(np.matrix(matrix))
101+
#This has to be in csr format
102+
sp_matrix_orig = matrix
103103

104104
normalize(sp_matrix_orig)
105105

0 commit comments

Comments
 (0)