igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] redundancy in bipartite networks


From: Tamas Nepusz
Subject: Re: [igraph] redundancy in bipartite networks
Date: Wed, 20 Feb 2013 16:45:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

Hi Simone,

>                               redund<-Reduce(union, list(unei,wnei))
>                               redund<-Reduce(setdiff, list(redund,i))
First, you need "intersect" here, not "union". Second, just out of
curiosity, why don't you simply do this:

redund <- setdiff(intersect(unei, wnei), i)

Also, a possible bug: if(length(nei)>0) should be replaced by
if(length(nei)>1), since there are no "neighbor pairs" if the node has only
one neighbor.

-- 
T.



reply via email to

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