You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何增大Graphviz中comm节点与其他同层级节点的间距?

如何增大Graphviz中comm节点与其他节点的间距

我希望增大Graphviz绘图中comm节点与其他节点的间距,当前使用的代码如下:

digraph H {
    overlap="false"
    splines="polyline"
    nodesep=2;
    
 comm [
   shape=plaintext
  
   label=< 
     <table border='1' cellborder='1'>
       <tr><td colspan="3">Коммутатор</td><td port='34'>34</td><td port='36'>36</td><td port='38'>38</td><td port='37'>37</td><td port='40'>40</td><td port='39'>39</td><td port='47'>47</td><td port='48'>48</td><td port='49'>49</td><td port='51'>51</td></tr>
     </table>
  >]; 
con1 [
   shape=plaintext
   
   label=<
     <table border='1' cellborder='1'>
      
       <tr><td colspan="3">Континент 1 </td><td port='In1'>In1</td><td port='8'>8</td></tr>
     </table>
  >];
  con2 [
   shape=plaintext
   
   label=<
     <table border='1' cellborder='1'>
      
       <tr><td colspan="3">Континент 2 </td><td port='In1'>In1</td><td port='8'>8</td></tr>
     </table>
  >];

 comm:34 -> con1:in1;
 comm:36 -> con2:In1;
 comm:49 -> con1:8;
 comm:51 -> con2:8;
}

当前绘图布局较为紧凑,后续会添加更多同层级的横向节点,需要增大comm节点与其他节点的间距以避免布局拥挤。

内容的提问来源于stack exchange,提问作者KaraSbaS Volkogonov

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.16 11:30:50