0
A
回答
1
是的,你可以。你只需要将两种不同的布局拼凑在一起。
library(igraph)
gr <- random.graph.game(100, p.or.m = 0.25, type = "gnp")
lay1 <- layout_in_circle(induced_subgraph(gr, 1:20)) ##layouts are just matrices with x, y coordinates
lay2 <- layout_with_fr(induced_subgraph(gr, 21:100)) #I used Fruchterman-Reingold on the subgraph excluding the nodes in the circle but you could include them and then overwrite their layout coordinates with the coordinates for the circle
lay3 <- rbind(lay1+2, lay2) ## I added a scalar to shift the circlular nodes out of the middle of the force-directed layout to make it more obvious.
plot(gr, layout=lay3, vertex.size=8)
相关问题
- 1. igraph固定节点坐标布局
- 2. igraph:按节点布局属性
- 3. 如何使用igraph为两种模式选择布局并避免重叠?
- 4. QRadioButtons在两种不同的布局
- 5. 如何使用R(igraph)或python为不同类型的不同节点建模?
- 6. 对GUI使用两种不同的布局
- 7. 在igraph中保存节点坐标(布局)
- 8. 扩大Igraph布局
- 9. Python:使用不同颜色节点的网络弹簧布局
- 10. 如何为两种风景定义不同的布局?
- 11. 如何为线性布局提供两种不同的背景
- 12. 使用R中的igraph计算两个节点之间的公共节点
- 13. 有两种不同布局的角度Js应用程序
- 14. 对两种不同的活动使用相同的布局是否可以?
- 15. igraph中的地理布局
- 16. R igraph - 保存布局?
- 17. Igraph:从网络中提取节点布局并将其用于另一个
- 18. 获取矩形,以两种不同的方式布局,自动布局
- 19. 从两种布局颜色
- 20. D3节点布局的节点大小
- 21. 两个主要的路由器,网点用不同的布局
- 22. 两种布局,一种在背景中
- 23. 将动画节点转换为布局
- 24. Laravel刀片模板扩展了两种不同的布局
- 25. 如何在两种不同布局上放置图像
- 26. 带有两种不同布局的列表视图
- 27. 两种不同的布局(垂直和水平)?
- 28. 如何添加使用布局另一种观点认为inflatter
- 29. 最小节点切割(Igraph)
- 30. igraph中的修复节点