summaryrefslogtreecommitdiff
path: root/src/free_network.c
blob: 2001479258ad29f8fdc9df98e78faba0a4938029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#include "fracture.h"

void graph_free(graph_t *network, cholmod_common *c) {
	free(network->ev);
	if (network->ev_break != network->ev) {
		free(network->ev_break);
	}
	free(network->vei);
	free(network->ve);
	free(network->bound_inds);
	free(network->bound_verts);
	free(network->vx);
	free(network->ex);
	free(network->dev);
	free(network->dvx);
	free(network->dvei);
	free(network->dve);
	free(network->spanning_edges);
	CHOL_F(free_sparse)(&(network->voltcurmat), c);
	free(network);
}