[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] igraph_get_all_shortest_paths memory problem

From: Tamas Nepusz
Subject: Re: [igraph] igraph_get_all_shortest_paths memory problem
Date: Wed, 02 Mar 2011 12:34:51 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

Dear Guilherme,

> I've tryed to comment the line with the function
> igraph_get_all_shortest_paths() and it "fixed" the problem of memory,
> this indicates that there are a memory problem with this function,
> dont you think?
igraph_get_all_shortest_paths() is perfectly fine, the problem is that
you are filling your igraph_vector_ptr_t with empty igraph_vectors
before calling igraph_get_all_shortest_paths, and these vectors get
overwritten by those that are allocated and stored by
igraph_get_all_shortest_paths itself. You can have to pass in an
initialized but otherwise empty igraph_vector_ptr_t to


reply via email to

[Prev in Thread] Current Thread [Next in Thread]