From: Matthew Fernandez Date: Sat, 23 Jul 2022 15:42:22 +0000 (-0700) Subject: sfdpgen: remove unimplemented 'DistanceMatrix_restrict_filtering' X-Git-Tag: 5.0.1~27^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b949696e44bcb748875173386ec00df1dd383550;p=graphviz sfdpgen: remove unimplemented 'DistanceMatrix_restrict_filtering' --- diff --git a/lib/sfdpgen/Multilevel.c b/lib/sfdpgen/Multilevel.c index 8cdb238d3..2ca931453 100644 --- a/lib/sfdpgen/Multilevel.c +++ b/lib/sfdpgen/Multilevel.c @@ -814,13 +814,6 @@ static void maximal_independent_edge_set_heavest_edge_pernode_scaled(SparseMatri } } -static SparseMatrix DistanceMatrix_restrict_filtering(int *mask, int is_C, int is_F, SparseMatrix D){ - /* max independent vtx set based coarsening. Coarsen nodes has mask >= is_C. Fine nodes == is_F. */ - if (!D) return NULL; - assert(0);/* not yet implemented! */ - return NULL; -} - static void Multilevel_coarsen_internal(SparseMatrix A, SparseMatrix *cA, SparseMatrix D, SparseMatrix *cD, double *node_wgt, double **cnode_wgt, SparseMatrix *P, SparseMatrix *R, Multilevel_control ctrl, int *coarsen_scheme_used){ @@ -1059,7 +1052,10 @@ static void Multilevel_coarsen_internal(SparseMatrix A, SparseMatrix *cA, Sparse SparseMatrix_set_pattern_symmetric(*cA); *cA = SparseMatrix_remove_diagonal(*cA); - *cD = DistanceMatrix_restrict_filtering(vset, MAX_IND_VTX_SET_C, MAX_IND_VTX_SET_F, D); + // TODO: restrict filtering, the operation that would happen here, has not + // been implemented + assert(!D); + *cD = NULL; break; default: goto RETURN;