小编Mar*_*ijn的帖子

在Mathematica.在GraphPlot中使用图像作为顶点时,如何防止图像重叠?

GraphPlot用来绘制大约100个顶点的有向图.我通过定义VertexRenderingFunction用一个小的矩形或方形图像替换每个顶点.图像经常重叠.有没有办法让Mathematica将顶点进一步分开以防止它们重叠?

我已经为'Method'("SpringElectricalEmbedding","SpringEmbedding","HighDimensionalEmbedding","CircularEmbedding","RandomEmbedding","LinearEmbedding")尝试了各种明显的选项.

trans = {1 -> 1, 2 -> 1, 3 -> 1, 4 -> 1, 5 -> 1, 6 -> 1, 7 -> 1,
8 -> 1, 9 -> 1, 10 -> 1, 11 -> 1, 12 -> 1, 13 -> 1, 14 -> 1, 
15 -> 1, 16 -> 1, 17 -> 1, 18 -> 13, 19 -> 1, 20 -> 13, 21 -> 13, 
22 -> 70, 23 -> 1, 24 -> 1, 25 -> …
Run Code Online (Sandbox Code Playgroud)

wolfram-mathematica graph

7
推荐指数
1
解决办法
642
查看次数

标签 统计

graph ×1

wolfram-mathematica ×1