From ab6746dddee6175a68df2b34c147751e267324da Mon Sep 17 00:00:00 2001 From: dibyendumajumdar Date: Sun, 17 Sep 2023 19:21:12 +0100 Subject: Add diagram --- chapter01/docs/02-graph.gv | 29 ++++++++++++++++++++++++++ chapter01/docs/02-graph.svg | 51 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 chapter01/docs/02-graph.gv create mode 100644 chapter01/docs/02-graph.svg (limited to 'chapter01/docs') 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=< + + + + + + + +
Inputs
Start
+ >]; + constant [label="Constant 1"]; + return [shape=none, label=< + + + + + + + + + +
Inputs01
Return
+ >]; + constant -> return:input1; + edge [color=red]; + start -> return:input0 [style=bold]; +} \ No newline at end of file diff --git a/chapter01/docs/02-graph.svg b/chapter01/docs/02-graph.svg new file mode 100644 index 00000000..1ced4870 --- /dev/null +++ b/chapter01/docs/02-graph.svg @@ -0,0 +1,51 @@ + + + + + + +chapter01 + + + +start + +Inputs + +Start + + + +return + +Inputs + +0 + +1 + +Return + + + +start->return:input0 + + + + + +constant + +Constant 1 + + + +constant->return:input1 + + + + + -- cgit v1.2.3