13 lines
205 B
C
13 lines
205 B
C
#include "sparse_matrix.h"
|
|
#include <stdlib.h>
|
|
|
|
void free_sparse_matrix(SparseMatrix *matrix) {
|
|
if (matrix) {
|
|
free(matrix->arcs);
|
|
free(matrix->row_ptr);
|
|
free(matrix);
|
|
}
|
|
}
|
|
|
|
|