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 11:35:29 +0200

On Fri, Jul 25, 2008 at 11:32 AM, Gabor Csardi <address@hidden> wrote:
> Marco,
>
> there is a function that returns the vertices _up to_ a given
> distance, use this twice. E.g. in R it is something like
>
> g <- graph.ring(10)
> setdiff( neighborhood(g, 3, 0)[[1]], neighborhood(g, 2, 0)[[1]] )
>
> Best,
> Gabor
>

Sounds great!

My correlation function says thanks ;)
(and me as well, obviously)

marco



-- 
รจ 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]