kober.r #7 igraph
DESCRIPTION
Kober.R #7TRANSCRIPT
igraph を使って
Kobe.R #7
データ前処理
write.graph(g,"D:/kober7/graph.gml","gml")
Gephiでグラフ化
igraphでグラフ化
n > 100
次数分布
次数分布 (次数中心性)
deg <- degree(g)
Gephiでグラフ化
入口商品
高額商品(n>10) ・ S2021 ・ S202 (ともに1万円)
中心ノード
最短経路の発見
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
グループ分け
spinglass.community(g)