[Top][All Lists]

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

Re: [igraph] free memory

From: Gábor Csárdi
Subject: Re: [igraph] free memory
Date: Wed, 15 Feb 2012 14:13:08 -0500

Hi Yulia, there is no API currently for freeing memory in a vector. As
most users use igraph from R or Python and vectors are often
destroyed, this was not considered a serious issue. I understand that
it is, if you program in C. I'll add API for it asap, see


On Wed, Feb 15, 2012 at 1:02 AM, Yulia Matveyeva
<address@hidden> wrote:
> Dear igraph-community,
>  I have understood that igraph_vector_resize does not free any memory. 
> However, I would like to ask if there is any way to "tell" igraph_vector_t to 
> eat less memory if I want to somehow resize it (other than copy part of its 
> contents to a newly initialised second vector and then destroy the first one) 
> ? For example, does igraph_vector_remove_section actually free any memory ?
> --
> Sincerely yours,
> Yulia Matveyeva,
> Department of Statistical Modelling,
> Faculty of Mathematics and Mechanics,
> St Petersburg State University, Russia
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help

Gabor Csardi <address@hidden>     MTA KFKI RMKI

reply via email to

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