我正在寻找在SICP中绘制http://mitpress.mit.edu/sicp/full-text/book/ch3-Z-G-35.gif,http://mitpress.mit.edu/sicp/full-text/book/ch3-Z-G-49.gif,http://mitpress.mit.edu/sicp/full-text/book/ch3-Z-G-51.gif这个以signal-flow diagram
命名的图表的方法。我尝试了一些方法,但都失败了。我在等你的帮忙。
我已经尝试了graphviz
并编写了以下代码。我想得到Fibonacci序列流的图表。
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)或教程来绘制这种图表?
非常感谢。