igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Nodes at a given distance


From: Marco
Subject: Re: [igraph] Nodes at a given distance
Date: Fri, 25 Jul 2008 12:05:40 +0200

Oh, ok!

I am using just python+igraph, that's why i was unable to find the setdiff. :)

I guess that now that i know what setdiff does, i can find or write
something that does the same in python.

thanks again,

marco


On Fri, Jul 25, 2008 at 11:59 AM, Gabor Csardi <address@hidden> wrote:
> 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.
>
> Best,
> Gabor
>
> 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
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
è il gioco della vita,
la dobbiamo preparare
che non ci sfugga dalle dita
come la sabbia in riva al mare.

Lucio Dalla




reply via email to

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