From: Matthew Fernandez Date: Thu, 10 Feb 2022 04:43:11 +0000 (+1100) Subject: sfdpgen: [nfc] remove DistanceMatrix_restrict_cluster no-op X-Git-Tag: 3.0.0~36^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2eca06233b1c57b0647ed672366ff6d2f8af579;p=graphviz sfdpgen: [nfc] remove DistanceMatrix_restrict_cluster no-op --- diff --git a/lib/sfdpgen/Multilevel.c b/lib/sfdpgen/Multilevel.c index 13d97125b..da9b6e71b 100644 --- a/lib/sfdpgen/Multilevel.c +++ b/lib/sfdpgen/Multilevel.c @@ -815,10 +815,6 @@ static void maximal_independent_edge_set_heavest_edge_pernode_scaled(SparseMatri } } -static SparseMatrix DistanceMatrix_restrict_cluster(int ncluster, int *clusterp, int *cluster, SparseMatrix P, SparseMatrix R, SparseMatrix D){ - return NULL; -} - static SparseMatrix DistanceMatrix_restrict_matching(int *matching, SparseMatrix D){ if (!D) return NULL; assert(0);/* not yet implemented! */ @@ -934,7 +930,7 @@ static void Multilevel_coarsen_internal(SparseMatrix A, SparseMatrix *cA, Sparse MATRIX_TYPE_REAL, sizeof(double)); *R = SparseMatrix_transpose(*P); - *cD = DistanceMatrix_restrict_cluster(ncluster, clusterp, cluster, *P, *R, D); + *cD = NULL; *cA = SparseMatrix_multiply3(*R, A, *P);