Skip to content

Instantly share code, notes, and snippets.

@shanecelis
Last active December 21, 2024 04:23
Show Gist options
  • Save shanecelis/20c5e7a6857cd0bb43b040b5eba1553b to your computer and use it in GitHub Desktop.
Save shanecelis/20c5e7a6857cd0bb43b040b5eba1553b to your computer and use it in GitHub Desktop.
# b-graph.dot
#
# $ dot -Tpng b-graph.dot -o b-graph.png
digraph G {
Foo0 [shape=record, label="{Foo | Children | Observers}"];
Bar0 [shape=record, label="{Bar | OhHiMark}"];
Bar1 [shape=record, label="{Bar | Children}"];
Baz0 [shape=record, label="{Baz}"];
Observer0 [shape=record, label="{system}"];
Foo0 -> Bar0[label="child"];
Foo0 -> Bar1[label="child"];
Bar1 -> Baz0[label="child"];
Foo0 -> Observer0[label="observer"];
}
# c-graph.dot
#
# $ dot -Tpng c-graph.dot -o c-graph.png
digraph G {
Foo0 [shape=record, label="{Foo}"];
Bar0 [shape=record, label="{Bar | OhHiMark | Children}"];
Bar1 [shape=record, label="{Bar | Children}"];
Baz0 [shape=record, label="{Baz | Children}"];
Observer0 [shape=record, label="{system}"];
Bar0 -> Foo0[label="child"];
Bar1 -> Foo0[label="child"];
Baz0 -> Bar1[label="child"];
Observer0 -> Foo0[label="observer"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment