library(igraph)
g <- graph.empty()
g <- add.vertices(g, 4,
label=c('a', 'b', 'c', 'd'),
shape=c('rectangle', 'rectangle', 'circle', 'circle'))
g <- add.edges(g, c(1, 2, 2, 3))
plot(g)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
608 次 |
| 最近记录: |