igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Shortest path matrix


From: Gábor Csárdi
Subject: Re: [igraph] Shortest path matrix
Date: Tue, 7 Jul 2015 13:00:36 +0200

On Tue, Jul 7, 2015 at 12:49 PM, seema aswani <address@hidden> wrote:
[...]
> get.shortest.paths(g, 5 , 2) will return 5 4 3 2. Then if i just want to
> find the intermediate nodes except this two nodes 5 and 2..??
> As a result i want to print the sequence 4 3 2.

So do you want the 2 in the end or not? Anyway, read about extracting
elements from vectors here:
http://cran.r-project.org/doc/manuals/r-patched/R-intro.html#Index-vectors

Gabor

[...]



reply via email to

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