Skip to content

Instantly share code, notes, and snippets.

@jonahgeorge
Last active July 21, 2017 13:38
Show Gist options
  • Select an option

  • Save jonahgeorge/3e0627c586c5f8f68930 to your computer and use it in GitHub Desktop.

Select an option

Save jonahgeorge/3e0627c586c5f8f68930 to your computer and use it in GitHub Desktop.

Using Graphviz/Dot Diagrams

brew install graphviz
dot graph.dot -Tpng > graph.png
digraph models_diagram {
edge [arrowhead=none];
"Department" -> "Course"
"Section" -> "Course"
"Section" -> "Instructor"
"Section" -> "Term"
"Student::Skill" -> "Skill"
"Student::Skill" -> "Student"
"Student::Preference" -> "Student"
"Student::Preference" -> "Section"
"Student::Preference" -> "Term"
"Section::RequiredSkill" -> "Section"
"Section::RequiredSkill" -> "Skill"
"Section::RequiredSkill" -> "Instructor"
"Instructor::Preference" -> "Instructor"
"Instructor::Preference" -> "Term"
"Instructor::Preference" -> "Section"
"Instructor::Preference" -> "Student"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment