我正在寻找绘制这样一个图表的方法http://mitpress.mit.edu/sicp/full-text/book/ch3-ZG-35.gif,http://mitpress.mit.edu/sicp /full-text/book/ch3-ZG-49.gif , http://mitpress.mit.edu/sicp/full-text/book/ch3-ZG-51.gif,以 SICP 命名signal-flow diagram
。我尝试了一些方法,但都失败了。我在等你的帮助。
我已经尝试graphviz
并编写了以下代码。我想获得斐波那契序列流的图表。
digraph G {
add [shape = box];
cons_1 [shape = box, label = "cons"];
cons_2 [shape = box, label = "cons"];
fibs [shape = point];
Efibs [shape = point];
single_0 [shape = none, label = "0"];
single_1 [shape = none, label = "1"];
subgraph cluster_0 {
add -> cons_1 -> Efibs -> cons_2 -> fibs;
}
single_0 -> cons_1 [style = dotted];
single_1 -> cons_2 [style = dotted];
Efibs -> add;
fibs -> add;
}
但结果很尴尬。是否有任何简单的工具(我更喜欢 WYTIWYG)或教程来绘制这种图表?
非常感谢。