[igraph] Error with get.shortest.paths but not with shortest.paths in R
From:
zbynek . janoska
Subject:
[igraph] Error with get.shortest.paths but not with shortest.paths in R
Date:
Mon, 16 Dec 2013 09:15:03 +0100
Hi,
I have encountered strange behavior
using igraph in R.
shortest.paths command returns correct
results, get.shortest.paths returns warning and no results.
> shortest.paths(g,v=2795,to=2839)
# corect
[,1]
[1,] 3930.4
> get.shortest.paths(g,from=2795,to=2839)
# warning and no results
[[1]]
numeric(0)
Warning message:
In get.shortest.paths(g_novy, from = 2795, to = 2839) :
At structural_properties.c:5296 :Couldn't reach some vertices