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:26:23 +0200

Yup, As long as the object returned by neighborhood is a set and not
something esoteric.

BTW, i have "import igraph"-ed but i can't find the function neighborhood.
Any hints? :)

Thanks again and again,

m



On Fri, Jul 25, 2008 at 12:10 PM, Gabor Csardi <address@hidden> wrote:
> http://en.wikibooks.org/wiki/Python_Programming/Sets#Set_Difference
>
> seems to be good enough.
>
> G.
>
> On Fri, Jul 25, 2008 at 12:05:40PM +0200, Marco wrote:
>> 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
>>
>>
>> _______________________________________________
>> 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]