Skip to content

Commit

Permalink
Simplify dot file for Figure 4-5
Browse files Browse the repository at this point in the history
Get rid of things which are not contributing meaningfully to the
resulting SVG output.
  • Loading branch information
chriskrycho committed Oct 1, 2024
1 parent dc67ffe commit 81c42b5
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 98 deletions.
31 changes: 7 additions & 24 deletions dot/trpl04-05.dot
Original file line number Diff line number Diff line change
@@ -1,33 +1,16 @@
digraph {
rankdir = LR;
overlap = false;
newrank = true;
dpi = 300.0;
splines = false;
clusterrank = "local";
node [shape = "plaintext";];

subgraph cluster_stack {
peripheries = 0;
rank = "same";

// Just to have the right height!
a [label = <<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" BGCOLOR="gray">
<TR><TD>a</TD></TR>
<TR><TD>0</TD></TR>
<TR><TD>1</TD></TR>
<TR><TD>2</TD></TR>
<TR><TD>3</TD></TR>
</TABLE>>;style = invis;];

s [label = <<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
<TR><TD COLSPAN="2" SIDES="B">s</TD></TR>
<TR><TD>name</TD><TD>value</TD></TR>
<TR><TD>ptr</TD><TD PORT="pointer"></TD></TR>
<TR><TD>len</TD><TD>4</TD></TR>
<TR><TD>capacity</TD><TD>4</TD></TR>
</TABLE>>;];
}
s [label = <<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
<TR><TD COLSPAN="2" SIDES="B">s</TD></TR>
<TR><TD>name</TD><TD>value</TD></TR>
<TR><TD>ptr</TD><TD PORT="pointer"></TD></TR>
<TR><TD>len</TD><TD>4</TD></TR>
<TR><TD>capacity</TD><TD>4</TD></TR>
</TABLE>>;];

subgraph cluster_heap {
peripheries = 0;
Expand Down
144 changes: 70 additions & 74 deletions src/img/trpl04-05.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 81c42b5

Please sign in to comment.