summaryrefslogtreecommitdiff
path: root/chapter01/docs/02-graph.gv
diff options
context:
space:
mode:
Diffstat (limited to 'chapter01/docs/02-graph.gv')
-rw-r--r--chapter01/docs/02-graph.gv29
1 files changed, 29 insertions, 0 deletions
diff --git a/chapter01/docs/02-graph.gv b/chapter01/docs/02-graph.gv
new file mode 100644
index 00000000..a47c23fe
--- /dev/null
+++ b/chapter01/docs/02-graph.gv
@@ -0,0 +1,29 @@
+digraph chapter01
+{
+ start [shape=none, label=<
+ <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
+ <TR>
+ <TD><I>Inputs</I></TD>
+ </TR>
+ <TR>
+ <TD COLSPAN="3"><B>Start</B></TD>
+ </TR>
+ </TABLE>
+ >];
+ constant [label="Constant 1"];
+ return [shape=none, label=<
+ <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
+ <TR>
+ <TD><I>Inputs</I></TD>
+ <TD PORT="input0">0</TD>
+ <TD PORT="input1">1</TD>
+ </TR>
+ <TR>
+ <TD COLSPAN="3"><B>Return</B></TD>
+ </TR>
+ </TABLE>
+ >];
+ constant -> return:input1;
+ edge [color=red];
+ start -> return:input0 [style=bold];
+} \ No newline at end of file