Skip to content
Prev 165574 / 398506 Next

question about SNA in R, thanks!

Weijia

see ?degree for the degree and ?cor for the correlation. E.g.

mixing <- function(g) {
  el <- get.edgelist(g)
  deg <- degree(g)
  cor(deg[el[,1]+1], deg[el[,2]+1])
}

You need to modify the degree() call to take edge direction into account.

Gabor

ps. FYI, there is also an igraph missing list, in case I miss your
messages on R-help and nobody else answers either.
On Fri, Dec 26, 2008 at 5:48 PM, Weijia You <weijiawx at gmail.com> wrote: