summaryrefslogtreecommitdiff
path: root/chapter01/docs/02-graph.gv
diff options
context:
space:
mode:
authordibyendumajumdar <mobile@majumdar.org.uk>2023-09-17 19:21:12 +0100
committerdibyendumajumdar <mobile@majumdar.org.uk>2023-09-17 19:21:12 +0100
commitab6746dddee6175a68df2b34c147751e267324da (patch)
treee585b27b85bedf65d68840aa26c90de6b1e7c387 /chapter01/docs/02-graph.gv
parente839f9b639e85d0383d3227f78118f55193518b3 (diff)
downloadSimple-ab6746dddee6175a68df2b34c147751e267324da.tar.gz
Simple-ab6746dddee6175a68df2b34c147751e267324da.zip
Add diagram
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