gpt4 book ai didi

graphviz - 使用Graphviz/yed制作时间线+图表

转载 作者:行者123 更新时间:2023-12-02 00:02:10 25 4
gpt4 key购买 nike

我有一个想法,可以表示类似家谱的东西,其中节点由有向图连接,但要在 y 轴上添加额外的时间维度。想象一下,页面顶部代表 1900 年,一直到底部代表 2020 年。

enter image description here

有没有办法在 Graphviz 或 yed 中做这样的事情?基本上自动布局指定的有向图,但节点在 y 轴上的位置与时间相关联?

最佳答案

这是 shells.gv - 部分来源:

digraph shells {
size="7,8";
node [fontsize=24, shape = plaintext];

1972 -> 1976;
1976 -> 1978;
1978 -> 1980;
1980 -> 1982;
1982 -> 1984;
1984 -> 1986;
1986 -> 1988;
1988 -> 1990;
1990 -> future;

node [fontsize=20, shape = box];
{ rank=same; 1976 Mashey Bourne; }
{ rank=same; 1978 Formshell csh; }
{ rank=same; 1980 esh vsh; }
{ rank=same; 1982 ksh "System-V"; }
{ rank=same; 1984 v9sh tcsh; }
{ rank=same; 1986 "ksh-i"; }
{ rank=same; 1988 KornShell Perl rc; }
{ rank=same; 1990 tcl Bash; }
{ rank=same; "future" POSIX "ksh-POSIX"; }

Thompson -> Mashey;
Thompson -> Bourne;
Thompson -> csh;
csh -> tcsh;
Bourne -> ksh;
Bourne -> esh;
Bourne -> vsh;
Bourne -> "System-V";
Bourne -> v9sh;
v9sh -> rc;
Bourne -> Bash;
"ksh-i" -> Bash;
KornShell -> Bash;
esh -> ksh;
vsh -> ksh;
Formshell -> ksh;
csh -> ksh;
KornShell -> POSIX;
"System-V" -> POSIX;
ksh -> "ksh-i";
"ksh-i" -> KornShell;
KornShell -> "ksh-POSIX";
Bourne -> Formshell;

edge [style=invis];
1984 -> v9sh -> tcsh ;
1988 -> rc -> KornShell;
Formshell -> csh;
KornShell -> Perl;
}

制作这个: enter image description here

关于graphviz - 使用Graphviz/yed制作时间线+图表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61550137/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com