R 言語は単純な部分有向接続グラフを描画します

library(igraph)
g <- make_empty_graph() +
  vertices(letters[1:10]) +
  vertices("foo", "bar", "bar2", "foobar2")
g <- g + edge("a", "b", color="red")
g <- g + edges("foo", "bar", "bar2", "foobar2", color="red", weight=1:2)
plot(g)

ここに画像の説明を挿入
参考:「ネットワークの分析と可視化」11ページ

おすすめ

転載: blog.csdn.net/m0_38127487/article/details/132088468