[Top][All Lists]

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

Re: [igraph] want to plot degree distribution

From: Tamás Nepusz
Subject: Re: [igraph] want to plot degree distribution
Date: Mon, 30 Sep 2013 22:39:25 +0200


There's a bug in the degree.distribution() function with R 3.0.0 and above; 
maybe you have encountered that. See this earlier email on the mailing list:


All the best,

On 30 Sep 2013, at 22:18, Swati Sinha <address@hidden> wrote:

> Hello All
> I have a huge connections file in "NCOL" format, which looks like this
> a  b  w1
> a   c  w2
> a  d  w3
> b  e  w4
> b  f   w5
> and so on, where first two columns are the vertices and third column is the 
> edge weight.
> I want to look for the degree distribution of this network. I am reading the 
> graph as :
> > g<-read.graph("links.txt", format ="ncol")
> Will a simple command given below works for it
> >degree.distribution(g)
> I tried running the example from the tutorial which is
> g2<-erdos.renyi.game(1000,10/1000)
> degree.distribution(g2)
> BUT, this gives the output as NULL.
> Any help.
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help

reply via email to

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