[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] calculate the degree of weighted network
From: |
Massimo Franceschet |
Subject: |
Re: [igraph] calculate the degree of weighted network |
Date: |
Sun, 15 Feb 2015 17:14:40 +0100 |
>
> Message: 1
> Date: Fri, 13 Feb 2015 18:35:08 -0500
> From: Qunawei Zhang <address@hidden>
> To: Help for igraph users <address@hidden>
> Subject: [igraph] calculate the degree of weighted network
> Message-ID: <address@hidden>
> 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