繁体   English   中英

垂直 Alignment 和隐形点

[英]Vertical Alignment and Invisiable Dot

试图将所有粗边框项目放入垂直 alignment。 我该怎么做呢?

另外,我正在尝试将两条线合并为一条的空点移至 go ,以便连接边缘。 它们由“i*”命名约定表示。 为此,我希望这两行重新合并在一起,然后附加到下一个项目。 我尝试了concentrate = "true" ,但没有按预期工作。 这些线基本上没有重新合并在一起。

digraph G {
  concentrate = "true";

  node[shape="box", style="rounded"];
  {
    start [penwidth = 2.0]; 
    end  [penwidth = 2.0];
  }
  
  // PROCESS
  node[shape="box"]; 
  {
    calc [label = "Calculate\nSelected\nValues", penwidth = 2.0]; 
    deployPara [label = "Deploy\nPatachute" ]; 
    bldMsg [label = "Build\nMessage"];
    sendMsg [label = "Transmit\nMessage"];
    sleepCycle [label = "Sleep\nCycle", penwidth=2];
  }
  
  // Decision
  node[shape="diamond", style=""]
  {
    decidePara [label = "Decide\nDeploy", penwidth=2];
    decideMsg [label = "Decide\nMessage", penwidth=2];
  }
  
  node[shape = point, width  = 0, height = 0]; 
  {
    iDeploy
    iMsg
  }

  start -> decidePara
  
  decidePara -> iDeploy [label = "No", arrowhead = "none"]

  decidePara -> deployPara [label = "Yes"]
  deployPara -> iDeploy [arrowhead = "none"]

  iDeploy -> decideMsg ;
  decideMsg -> iMsg [label = "No", arrowhead = "none"];
  decideMsg -> bldMsg [label = "Yes"];
  bldMsg -> sendMsg;
  sendMsg -> iMsg [arrowhead = "none"]

  iMsg -> sleepCycle
  
  sleepCycle -> end;

  {rank=same; decidePara deployPara}
  {rank=same; decideMsg bldMsg sendMsg}
}

编辑图像评论者看到的是:

在此处输入图像描述

变化:

digraph G {
  concentrate = "true";
  splines=false

  node[shape="box", style="rounded"];
  {
    start [penwidth = 2.0 group=S]; 
    end  [penwidth = 2.0 group=S];
  }
  
  // PROCESS
  node[shape="box"]; 
  {
    calc [label = "Calculate\nSelected\nValues", penwidth = 2.0]; 
    deployPara [label = "Deploy\nPatachute" ]; 
    bldMsg [label = "Build\nMessage"];
    sendMsg [label = "Transmit\nMessage"];
    sleepCycle [label = "Sleep\nCycle", penwidth=2 group=S];
  }
  
  // Decision
  node[shape="diamond", style=""]
  {
    decidePara [label = "Decide\nDeploy", penwidth=2 group=S];
    decideMsg [label = "Decide\nMessage", penwidth=2 group=S];
  }
  
  node[shape = point, width  = .01, height = .01 group=S]; 
  {
    iDeploy 
    iMsg
  }

  start -> decidePara
  
  decidePara -> iDeploy [label = "No", arrowhead = "none" headclip=false]

  decidePara -> deployPara [label = "Yes"]
  deployPara -> iDeploy [arrowhead = "none" headclip=false]

  iDeploy -> decideMsg [tailclip=false]
  decideMsg -> iMsg [label = "No", arrowhead = "none" headclip=false];
  decideMsg -> bldMsg [label = "Yes"];
  bldMsg -> sendMsg;
  sendMsg -> iMsg [arrowhead = "none"]

  iMsg -> sleepCycle  [tailclip=false]
  
  sleepCycle -> end;

  {rank=same; decidePara deployPara}
  {rank=same; decideMsg bldMsg sendMsg}
}

给予:
在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM