diff options
| author | dibyendumajumdar <mobile@majumdar.org.uk> | 2023-09-17 19:21:12 +0100 |
|---|---|---|
| committer | dibyendumajumdar <mobile@majumdar.org.uk> | 2023-09-17 19:21:12 +0100 |
| commit | ab6746dddee6175a68df2b34c147751e267324da (patch) | |
| tree | e585b27b85bedf65d68840aa26c90de6b1e7c387 | |
| parent | e839f9b639e85d0383d3227f78118f55193518b3 (diff) | |
| download | Simple-ab6746dddee6175a68df2b34c147751e267324da.tar.gz Simple-ab6746dddee6175a68df2b34c147751e267324da.zip | |
Add diagram
| -rw-r--r-- | chapter01/docs/02-graph.gv | 29 | ||||
| -rw-r--r-- | chapter01/docs/02-graph.svg | 51 |
2 files changed, 80 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 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 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<!-- Generated by graphviz version 2.43.0 (0) + --> +<!-- Title: chapter01 Pages: 1 --> +<svg width="218pt" height="144pt" + viewBox="0.00 0.00 217.74 144.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> +<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 140)"> +<title>chapter01</title> +<polygon fill="white" stroke="transparent" points="-4,4 -4,-140 213.74,-140 213.74,4 -4,4"/> +<!-- start --> +<g id="node1" class="node"> +<title>start</title> +<polygon fill="none" stroke="black" points="8,-111 8,-132 60,-132 60,-111 8,-111"/> +<text text-anchor="start" x="11" y="-118.8" font-family="Times,serif" font-style="italic" font-size="14.00">Inputs</text> +<polygon fill="none" stroke="black" points="8,-90 8,-111 60,-111 60,-90 8,-90"/> +<text text-anchor="start" x="14" y="-97.8" font-family="Times,serif" font-weight="bold" font-size="14.00">Start</text> +</g> +<!-- return --> +<g id="node3" class="node"> +<title>return</title> +<polygon fill="none" stroke="black" points="23,-25 23,-46 75,-46 75,-25 23,-25"/> +<text text-anchor="start" x="26" y="-32.8" font-family="Times,serif" font-style="italic" font-size="14.00">Inputs</text> +<polygon fill="none" stroke="black" points="75,-25 75,-46 91,-46 91,-25 75,-25"/> +<text text-anchor="start" x="78" y="-31.8" font-family="Times,serif" font-size="14.00">0</text> +<polygon fill="none" stroke="black" points="91,-25 91,-46 107,-46 107,-25 91,-25"/> +<text text-anchor="start" x="94" y="-31.8" font-family="Times,serif" font-size="14.00">1</text> +<polygon fill="none" stroke="black" points="23,-4 23,-25 107,-25 107,-4 23,-4"/> +<text text-anchor="start" x="36.5" y="-11.8" font-family="Times,serif" font-weight="bold" font-size="14.00">Return</text> +</g> +<!-- start->return --> +<g id="edge2" class="edge"> +<title>start->return:input0</title> +<path fill="none" stroke="red" stroke-width="2" d="M64.48,-85.89C72.1,-77.75 78.91,-67.97 81.68,-57.18"/> +<polygon fill="red" stroke="red" stroke-width="2" points="85.19,-57.37 83,-47 78.24,-56.47 85.19,-57.37"/> +</g> +<!-- constant --> +<g id="node2" class="node"> +<title>constant</title> +<ellipse fill="none" stroke="black" cx="148" cy="-111" rx="61.99" ry="18"/> +<text text-anchor="middle" x="148" y="-107.3" font-family="Times,serif" font-size="14.00">Constant 1</text> +</g> +<!-- constant->return --> +<g id="edge1" class="edge"> +<title>constant->return:input1</title> +<path fill="none" stroke="black" d="M126.08,-94.12C115.38,-84.75 104.01,-71.82 100.27,-57"/> +<polygon fill="black" stroke="black" points="103.73,-56.48 99,-47 96.79,-57.36 103.73,-56.48"/> +</g> +</g> +</svg> |
