On Thu, Nov 20, 2014 at 1:05 PM, patricia <[email protected]> wrote: > Understood, but when I said that the variable type igraph_t be initialized > before being passed as parameter to igraph_adjacency () function I meant > only that igraph_t variable was initialized using igraph_empty () function.
You will still have a memory leak. > In this situation, some sort of error if I pass this variable to the > adjacency function () occurs. Then I guess you are making some sort of mistake. Gabor > Thank you. > >> Date: Thu, 20 Nov 2014 12:04:52 -0500 >> From: [email protected] >> To: [email protected] >> Subject: Re: [igraph] : igraph_adjacency() > >> >> It will cause a memory leak, as the memory allocated for the old graph >> will be lost. Call igraph_destroy() on it before calling >> igraph_adjacency(). >> >> Gabor >> >> On Thu, Nov 20, 2014 at 12:00 PM, patricia <[email protected]> >> wrote: >> > Hello, >> > >> > >> > A quick question: the igraph_adjacency () function receives as a >> > parameter >> > an uninitialized object graph; If I provide a graph object initialized >> > it >> > cause an error? >> > >> > >> > >> > Thanks for the help. >> > >> > _______________________________________________ >> > igraph-help mailing list >> > [email protected] >> > https://lists.nongnu.org/mailman/listinfo/igraph-help >> > >> >> _______________________________________________ >> igraph-help mailing list >> [email protected] >> https://lists.nongnu.org/mailman/listinfo/igraph-help > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
