static void hierachical_modularity_clustering(SparseMatrix A, int ncluster_target,
- int *nclusters, int **assignment, double *modularity, int *flag){
+ int *nclusters, int **assignment, double *modularity){
/* find a clustering of vertices by maximize modularity
A: symmetric square matrix n x n. If real value, value will be used as edges weights, otherwise edge weights are considered as 1.
*modularity = 0.;
- *flag = 0;
-
grid = Multilevel_Modularity_Clustering_new(A, ncluster_target);
/* find coarsest */
if (B->type != MATRIX_TYPE_REAL || !use_value) B = SparseMatrix_set_entries_to_real_one(B);
- hierachical_modularity_clustering(B, ncluster_target, nclusters, assignment, modularity, flag);
+ hierachical_modularity_clustering(B, ncluster_target, nclusters, assignment, modularity);
if (B != A) SparseMatrix_delete(B);