[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] memory owerflow
From: |
Gabor Csardi |
Subject: |
Re: [igraph] memory owerflow |
Date: |
Thu, 12 Jun 2008 13:59:13 -0500 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
Lubos,
I'm not very familiar with the Python interface,
but this seems to be either 1) an igraph memory leak or
2) Python not doing garbage collection frequently enough.
(Or both.)
You can try to call collect from the gc module, that forces
garbage collection. (At least this is my understanding of the manual,
I cannot try it now, sorry, maybe later today.
Best,
Gabor
On Wed, Jun 11, 2008 at 07:19:17PM +0200, Buzna Lubos wrote:
> Dear igraph developers,
>
>
>
> I am working with igraph library in python. Working with larger network
>
> I have a memory overflow problems.
>
>
>
> The following code allows to simulate it. I am also sending you a small
> network.
>
> I would be happy if you could look if I am doing something wrong or if it is
> a
> python feature.
>
>
>
>
>
> def test3():
>
> import igraph
>
>
>
> rep = 1000000
>
> i = 0
>
> g = igraph.Graph.Read_GML("./test/Hungary.gml")
>
> while (i < rep):
>
> g_copy = g.copy()
>
> # do some network operations (removed for simplicity reasons)
>
> del g_copy
>
> print "experiment: " + str(i)
>
> i = i + 1
>
>
>
>
>
> Many thanks for your useful work.
>
>
>
> Br,
>
>
>
> Lubos.
>
>
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
--
Csardi Gabor <address@hidden> UNIL DGM