时间轴上的 Graphviz 节点

Graphviz nodes on a timeline

我该怎么做才能确保 4 月和 5 月在 1 月和 8 月之间? 有没有不使用隐藏的解决方案nodes/edges?

   digraph G {
        
        rankdir=LR;
    
      "09/30/2021"->"12/03/2021"->"01/05/2022"->"08/19/2022";
      "12/03/2021"->"04/27/2022"->"05/25/2022";
    
    }

https://dreampuf.github.io/GraphvizOnline/

以下是如何使用集群使时间线线性化。然后让其他弧不在集群内,给他们集群外的节点。您始终可以隐藏这些(并修复 9 月之后的那个)- 是的,可能有一种不使用隐藏节点的方法,不确定您为什么要避免这种情况。

digraph G {
    rankdir=LR;
    subgraph cluster_0 {
        style=filled;
        color=lightgrey;
        node [style=filled,color=white];
        Jan->Feb->Mar -> Apr->May->Jun->Jul->Aug->Sep->Oct->Nov->Dec;
        label = "timeline";
    }

    Sep->op1->Mar->op2->May->op3->Aug;
    Mar->op4->Apr->op5->May;
}

产生这个: