igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] correlation between degree of a node and average degree of


From: Tamas Nepusz
Subject: Re: [igraph] correlation between degree of a node and average degree of its neighbors
Date: Wed, 24 Nov 2010 18:34:59 +0000

> I am wondering how to extract the average degree of neighbors for all the 
> nodes in my network. 
> [...]
> I am trying with the neighbors() function, but I cannot understand how to 
> extract neighbors. My aim is to plot the degree of a node vs. the average 
> degree of its neighbors, which should be a visual way to show assortativity, 
> if I get it correctly.
Have you checked the graph.knn() function in the R interface? It seems to do 
exactly what you would like to do.

-- 
Tamas




reply via email to

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