This is always set to false.
if (!clust_sym) clust_sym = agattr(g,AGNODE,"cluster","-1");
if (clustering_scheme == CLUSTERING_MQ){
- mq_clustering(A, FALSE, maxcluster, use_value,
+ mq_clustering(A, maxcluster, use_value,
&nc, clusters, &modularity);
} else if (clustering_scheme == CLUSTERING_MODULARITY){
modularity_clustering(A, FALSE, maxcluster, use_value,
if (!clust_sym) clust_sym = agattr(g,AGNODE,"cluster","-1");
if (clustering_scheme == CLUSTERING_MQ){
- mq_clustering(A, FALSE, maxcluster, use_value,
+ mq_clustering(A, maxcluster, use_value,
&nc, &clusters, &modularity);
} else if (clustering_scheme == CLUSTERING_MODULARITY){
modularity_clustering(A, FALSE, maxcluster, use_value,
-void mq_clustering(SparseMatrix A, int inplace, int maxcluster, int use_value,
+void mq_clustering(SparseMatrix A, int maxcluster, int use_value,
int *nclusters, int **assignment, double *mq){
/* find a clustering of vertices by maximize mq
A: symmetric square matrix n x n. If real value, value will be used as edges weights, otherwise edge weights are considered as 1.
- inplace: whether A can e modified. If true, A will be modified by removing diagonal.
maxcluster: used to specify the maximum number of cluster desired, e.g., maxcluster=10 means that a maximum of 10 clusters
. is desired. this may not always be realized, and mq may be low when this is specified. Default: maxcluster = 0
nclusters: on output the number of clusters
B = SparseMatrix_symmetrize(A, false);
- if (!inplace && B == A) {
+ if (B == A) {
B = SparseMatrix_copy(A);
}
/* find a clustering of vertices by maximize modularity quality
A: symmetric square matrix n x n. If real value, value will be used as edges weights, otherwise edge weights are considered as 1.
- inplace: whether A can e modified. If true, A will be modified by removing diagonal.
maxcluster: used to specify the maximum number of cluster desired, e.g., maxcluster=10 means that a maximum of 10 clusters
. is desired. this may not always be realized, and modularity quality may be low when this is specified. Default: maxcluster = 0 (no limit)
. If *assignment = NULL on entry, it will be allocated. Otherwise used.
mq: achieve modularity
*/
-void mq_clustering(SparseMatrix A, int inplace, int maxcluster, int use_value,
+void mq_clustering(SparseMatrix A, int maxcluster, int use_value,
int *nclusters, int **assignment, double *mq);
#ifdef __cplusplus