igraph-help
[Top][All Lists]

## Re: [igraph] exponential graph

 From: Amit Kumar Subject: Re: [igraph] exponential graph Date: Wed, 10 Sep 2008 23:22:32 +0100

Hello Gabor,
I tried :-
degs <- sample(1:100, 100, replace=TRUE, prob=(1:100)^-2)
g <- degree.sequence.game(degs, method="vl")

but every time the second line is executed RGui prompt an error and closes the application.I am not able to figure out why this is happening.I am using R in windows vista.Please help!

regards
Amit

On Wed, Sep 10, 2008 at 5:01 PM, Amit Kumar wrote:
Hello Gabor,
Sorry my fault. I will try to be more precise this time.
I need to generate random graph having exponential degree distribution. Where no of nodes in the graph is 100 and probablity that an edge between two randomly picked vertices exists is 0.15.

Amit

On Wed, Sep 10, 2008 at 4:12 PM, Csardi Gabor wrote:
Amit, I'm sorry, but you have to be a bit more precise.

What is an exponential graph? A graph with exponential degree distribution?

The of probability of what exactly is 0.15? That an edge between two
randomly picked vertices exists?

G.

On Wed, Sep 10, 2008 at 03:44:47PM +0100, Amit Kumar wrote:
> Hello Gabor,
> I just want to generate an exponential graph with No of nodes=100 and
> probablity=0.15
>
> Amit
>
> On Wed, Sep 10, 2008 at 2:18 PM, Csardi Gabor <address@hidden> wrote:
>
> > Amit, what is the preferential attachment=1.5?
> >
> > To generate connected undirected graphs with an arbitrary
> > degree distribution use degree.sequence.game with method="vl".
> >
> > E.g.
> >
> > degs <- sample(1:100, 100, replace=TRUE, prob=(1:100)^-2)
> > g <- degree.sequence.game(degs, method="vl")
> >
> > Gabor
> >
> > On Wed, Sep 10, 2008 at 01:47:43PM +0100, Amit Kumar wrote:
> > > Hello,
> > > Please guide me how to generate exponential degree distribution and then
> > > generate a exponential graph from this exponential degree distribution.
> > > Given that No of nodes=100 and preferential attachment=1.5.
> > >
> > > regards
> > > Amit
> >
> > > _______________________________________________
> > > igraph-help mailing list
> > > http://lists.nongnu.org/mailman/listinfo/igraph-help
> >
> >
> > --
> > Csardi Gabor <address@hidden>    MTA RMKI, ELTE TTK
> >
> >
> > _______________________________________________
> > igraph-help mailing list
> > http://lists.nongnu.org/mailman/listinfo/igraph-help
> >

> _______________________________________________
> igraph-help mailing list
> http://lists.nongnu.org/mailman/listinfo/igraph-help

--
Csardi Gabor <address@hidden>    MTA RMKI, ELTE TTK

_______________________________________________
igraph-help mailing list