igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] random generator graph in C


From: Gábor Csárdi
Subject: Re: [igraph] random generator graph in C
Date: Tue, 3 Nov 2009 13:58:16 +0100

On Tue, Nov 3, 2009 at 1:44 PM, wassim gmail <address@hidden> wrote:
> Gábor Csárdi a écrit :
>>>
>>> 2- I want to browse my graph generated to computes somes properties for
>>> each
>>> vertices. How can i dot it ?
>>>
>>
>> I am not sure what you mean by 'browsing' your graph.
>>
>>
>
> Thank you for your replay. In fact i want to use the igraph to test a scheme
> of allocation address in network. So here what i do i generate my random
> graph and then i took every vertice and i compute one address. But the
> problem i can't browse my graph vertices's.

What does it mean to "browse" the graph's vertices?

> Also i have another problem; here's the code i have written (what is look):
>
[...]
>
> but here i get an error like this:
>   Error at vector.pmt:409 :cannot reserve space for vector, Out of memory
>
> Is there a solution for this ?
>
> Another question is that every time i called the function
> igraph_vector_init(), does it erase the last structure or does it
> concatenate teh previous one and this is why i have  this out of memory ?

If you don't call igraph_vector_destroy(), then nothing is destroyed.
If you call igraph_vector_init() on the same vector again, then the
memory is lost. So, yes, this might be the reason for getting the
error message.

Best,
Gabor

> Thank you for your help
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

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