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. QRadioButtons在兩種不同的佈局
- 4. 如何使用R(igraph)或python爲不同類型的不同節點建模?
- 5. 對GUI使用兩種不同的佈局
- 6. 擴大Igraph佈局
- 7. 在igraph中保存節點座標(佈局)
- 8. 如何爲線性佈局提供兩種不同的背景
- 9. 如何爲兩種風景定義不同的佈局?
- 10. 有兩種不同佈局的角度Js應用程序
- 11. 對兩種不同的活動使用相同的佈局是否可以?
- 12. R igraph - 保存佈局?
- 13. Igraph:從網絡中提取節點佈局並將其用於另一個
- 14. 從兩種佈局顏色
- 15. D3節點佈局的節點大小
- 16. 將動畫節點轉換爲佈局
- 17. 兩種佈局,一種在背景中
- 18. 兩種不同的佈局(垂直和水平)?
- 19. 帶有兩種不同佈局的列表視圖
- 20. 如何在兩種不同佈局上放置圖像
- 21. 最小節點切割(Igraph)
- 22. 如何添加使用佈局另一種觀點認爲inflatter
- 23. 要使用哪種佈局?
- 24. 圖像使用它時,作爲IGRAPH節點
- 25. D3js力佈局 - 與節點
- 26. cytoscape.js佈局複合節點
- 27. 節點紅色UI佈局
- 28. 在佈局上堆疊兩種不同尺寸的不同視圖
- 29. 在IGRAPH情節更改佈局結構基於社區
- 30. 可以爲縱向和橫向指定兩種不同的佈局嗎?