Hi,
I've just been handed a code using boost's cuthill-mckee algorithm. I
found a memory leak within the code block where a number of edges being
added to a graph but never cleaned at the end.
Now, graph has a "clear" method where it's supposed to delete vertices
and edges but it does not effect the memory leak, when I check the used
memory size its still there. I need a way to delete a graph object and
free all its internal mallocations if any.
...and I haven't used boost before...
Here is the code block:
//create incidence graph G2 from adj_list
//apply cuthill-mckee on G2
//write out resulting permutation to perm_result
Graph G2(matrix_size); //Graph data structure used in Cuthill-Mckee
//add all the edges in adj_list to G2
for(int row=0;row
participants (1)
-
Ufuk Okuyucu