Skip to content

Instantly share code, notes, and snippets.

@jkeam
Created March 22, 2017 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkeam/cbf6cb2094d3ebca3a77e751a0fdb939 to your computer and use it in GitHub Desktop.
Save jkeam/cbf6cb2094d3ebca3a77e751a0fdb939 to your computer and use it in GitHub Desktop.
Zoos and Animals
digraph SimplestDiagrams {
Zoo1
"Zoo1" -> "Cat"
"Zoo1" -> "Dog"
Zoo2
"Zoo2" -> "Cat"
"Zoo2" -> "Crow"
Zoo3
"Zoo3" -> "Owl"
"Zoo3" -> "Dog"
Animals [
shape=record
label="{Animals|id\ntype=[cat, crow, dog, owl]\nzooId}"
]
Zoo [
shape=record
label="{Zoo|id}"
]
Zoo -> Animals [arrowhead=crow]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment