igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] generated random connected power la graph with a prescribed


From: Gábor Csárdi
Subject: Re: [igraph] generated random connected power la graph with a prescribed degree sequence
Date: Fri, 3 Dec 2010 15:02:06 +0100

Hi,

you don't even need igraph for this, see the sample() R function, and
its 'prob' argument. There are examples in the degree.sequence.game()
manual page.

Best,
Gabor

On Thu, Dec 2, 2010 at 6:46 PM, franck kalala
<address@hidden> wrote:
> Hi all,
>
> I want to generate random connected power law graph with different power
> exponent and save each graph in a separate file.
>
> The size of the graph I want to generate may varie, for now i need n=1000
> nodes and power exponent  2.1,2.3,2.5
>
> How can I do it in igraph?
> I just descovered igraph last nigth I use networkx,
>
> Mainly I dont know how to generate a degree sequence for a power law graph
> given the power exponent.
>
> Cheers
>
> Kalulu
>
> --
> **********
>   ++++
>     ---
>      *
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM



reply via email to

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