]> granicus.if.org Git - graphviz/commitdiff
remove unused SparseMatrix_pseudo_diameter_only
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 31 May 2021 16:41:52 +0000 (09:41 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Jun 2021 18:06:37 +0000 (11:06 -0700)
lib/sparse/SparseMatrix.c
lib/sparse/SparseMatrix.h

index 5b0956303070a2b344cd62fd65f748fb3058b7f6..91c4de328abf8413ce00072ea5ef01d65cb86e82 100644 (file)
@@ -2498,11 +2498,6 @@ real SparseMatrix_pseudo_diameter_unweighted(SparseMatrix A0, int root, int aggr
   return (real) nlevel0 - 1;
 }
 
-real SparseMatrix_pseudo_diameter_only(SparseMatrix A){
-  int end1, end2, connectedQ;
-  return SparseMatrix_pseudo_diameter_unweighted(A, 0, FALSE, &end1, &end2, &connectedQ);
-}
-
 int SparseMatrix_connectedQ(SparseMatrix A0){
   int root = 0, nlevel, *levelset_ptr = NULL, *levelset = NULL, *mask = NULL, connected;
   SparseMatrix A = A0;
index 6a20dcbf2b7b709e5fed6592079274bdf9600056..1aae230b4bf9beaae50e41ea1bbfc893ec26a3fd 100644 (file)
@@ -89,7 +89,6 @@ int SparseMatrix_has_diagonal(SparseMatrix A);
 SparseMatrix SparseMatrix_scaled_by_vector(SparseMatrix A, real *v, int apply_to_row);
 SparseMatrix SparseMatrix_make_undirected(SparseMatrix A);/* make it strictly low diag only, and set flag to undirected */
 int SparseMatrix_connectedQ(SparseMatrix A);
-real SparseMatrix_pseudo_diameter_only(SparseMatrix A);
 real SparseMatrix_pseudo_diameter_weighted(SparseMatrix A0, int root, int aggressive, int *end1, int *end2, int *connectedQ); /* assume real distances, unsymmetric matrix ill be symmetrized */
 real SparseMatrix_pseudo_diameter_unweighted(SparseMatrix A0, int root, int aggressive, int *end1, int *end2, int *connectedQ); /* assume unit edge length, unsymmetric matrix ill be symmetrized */
 void SparseMatrix_level_sets(SparseMatrix A, int root, int *nlevel, int **levelset_ptr, int **levelset, int **mask, int reintialize_mask);