[Top][All Lists]

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

Re: [igraph] Nodes at a given distance

From: Gabor Csardi
Subject: Re: [igraph] Nodes at a given distance
Date: Fri, 25 Jul 2008 04:59:28 -0500
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Marco, do you actually use R? If yes, see ?setdiff.

setdiff is an R function, it is the difference operation between
two sets, it calculates the elements that are in the first set,
but not in the second. Maybe there is something similar in Python,
but you'll have to write it for yourself if you use C. It is not 
hard, just sort both vectors and go over them once to keep the elements 
that are in the first vector only. As always, using a higher level 
language is easier.


On Fri, Jul 25, 2008 at 11:54:45AM +0200, Marco wrote:
> Hi,
> it sounded too great to work straight away: one stupid question arises.
> What is setdiff? :|
> thanks and sorry,
> marco
> -- 
> รจ il gioco della vita,
> la dobbiamo preparare
> che non ci sfugga dalle dita
> come la sabbia in riva al mare.
> Lucio Dalla
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help

Csardi Gabor <address@hidden>    UNIL DGM

reply via email to

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