[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:32:51 -0500
User-agent: Mutt/1.5.17+20080114 (2008-01-14)


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]] )


On Fri, Jul 25, 2008 at 11:26:05AM +0200, Marco wrote:
> Hi,
> i am looking for a function that, given a node and an integer n,
> returns me the indexes (or something like that) of all the nodes that
> are n edges away from the starting node.
> Is there an 'easy' way to do it? An already built-in function?
> Thanks in advance,
> 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]