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)

More Related Content

PDF
Ag and ack
DOCX
PPTX
普通のコードがCodeGolfコードになるまで in Ruby
PPTX
Introduction to R Graphics with ggplot2 #1
PDF
Opendataday osaka 2014_memo
PDF
R入門とgoogle map +α
PPTX
TSP and Geocoding on R
PPTX
Beer vs wine by Sandip Murari
Ag and ack
普通のコードがCodeGolfコードになるまで in Ruby
Introduction to R Graphics with ggplot2 #1
Opendataday osaka 2014_memo
R入門とgoogle map +α
TSP and Geocoding on R
Beer vs wine by Sandip Murari
Ad

Kober.R #7 igraph