Kober.R #7 igraph
- 8. 最短経路の発見
s2021 <- get.all.shortest.paths(g, "s63", "s2021")
s202 <- get.all.shortest.paths(g, "s63", "s202")
V(g)[s2021$res[[1]]]
> Vertex sequence: [1] "s63" "s2021"
V(g)[s202$res[[1]]]
> Vertex sequence: [1] "s63" "35" "s202"
みらくる
プレゼント
チャーハン
きゅうきょく
¥10000