igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] calculate the degree of weighted network


From: Tamas Nepusz
Subject: Re: [igraph] calculate the degree of weighted network
Date: Sat, 14 Feb 2015 21:08:13 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

Hi,

Use strength(), not degree().

-- 
T.

On 02/13, Qunawei Zhang wrote:
> 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)
> 
> 
> 
> #the network file
> 
> A1BG    ANXA7   16530.90
> A1BG    TK1     13310.48
> A1BG    SNCA    11476.88
> A1BG    CDKN1A  9057.41
> A1BG    GRB7    8774.95
> A1CF    SYNCRIP 14477.77
> A1CF    APOBEC1 315.91
> 
> Thanks
> 
> Best
> Quanwei
> 
> 

> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help


-- 
T.



reply via email to

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