igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] igraph_get_all_shortest_paths memory problem


From: Guilherme Ferraz de Arruda
Subject: Re: [igraph] igraph_get_all_shortest_paths memory problem
Date: Wed, 2 Mar 2011 11:22:52 -0300

I change my code, now i dont use that calloc(), but i have the same problem.

I have used the calloc becouse there is an example about this function
that do this.

Thanks for all.

Guilherme.

2011/3/2 Tamas Nepusz <address@hidden>:
> 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
> igraph_get_all_shortest_paths.
>
> --
> Tamas
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>

Attachment: information.c
Description: Text Data


reply via email to

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