Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用两种类型的节点布置图(树):框和圆。
igraph 可以做到这一点吗?一个最小的例子会是什么样子?
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)