> 
> Message: 1
> Date: Fri, 13 Feb 2015 18:35:08 -0500
> From: Qunawei Zhang <[email protected]>
> To: Help for igraph users <[email protected]>
> Subject: [igraph] calculate the degree of weighted network
> Message-ID: <d103f45c.1ad68%[email protected]>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hello:
> 
> I have a weighted network. It's format is shown below. I imported the
> network as a weighted network and calculated the degrees. But I found the
> degrees are not based on the weights (I.e., the number of interaction
> partners instead).
> I used the following codes in R. Is there anything wrong? thanks
> 
> read.graph(file=file_network_MR,format="ncol",weights="yes")
> 
> de_MR=degree(network_MR)
> 


Use graph.strength (http://igraph.org/r/doc/graph.strength.html) for weighted 
degree, and degree for unweighted degree.

All the best,

Massimo Franceschet
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to