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 18:02:34 +0100

On Tue, Nov 3, 2009 at 5:58 PM, wassim gmail <address@hidden> wrote:
> Gábor Csárdi a écrit :
>>
>> Should be. igraph_neighbors() gives you the neighbors of a vertex.
>> Vertex ids are just numbers between zero and the number of vertices
>> minus one.
>
> This is what i have done. I was thinking may be there a function already
> able to do this automatically. (like the vertex iterator)

There is actually a vertex iterator, but in your case it is not
simpler than using the ids.

>> Probably the erdos_renyi_game() function is what you are looking for.
>>
>
> Ok i have tested with this function. One question is have you any idea about
> the maximum size of graph that i can generate using this function.

Should be around 2 billion vertices or 1 billion edges, I think. But
you will probably reach the memory limits sooner.

Gabor

> Thank you very much for your help.
>
> best regards,
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

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