Skip to content

Instantly share code, notes, and snippets.

@a-h
Created September 18, 2015 08:20
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 a-h/6845d02f6e6698bd2677 to your computer and use it in GitHub Desktop.
Save a-h/6845d02f6e6698bd2677 to your computer and use it in GitHub Desktop.
GraphViz Example - Formatted
digraph G {
/* Set graph background attributes */
style=filled;
bgcolor="#548881";
rankdir=LR; /* Comment out if you want it to be oriented top to bottom */
/* Set default shape to be a box rather than an ellipse */
node [shape=box, fontsize=11, fontname="Calibri Bold", color="#2E5F58", style=filled, fillcolor="#2E5F58", fontcolor="#ffffff"];
/* Style the arrows, because I think that the arrow head is too big by default */
edge [color="#9DC8C2", arrowsize=0.5];
/* Tasks */
"Find Driving\n Instructor" -> "Book Lessons" -> "Learn To Drive" -> "Book Practical\n Test" -> "Pass Practical\n Test";
"Study for Theory\n Test" -> "Book Theory\n Test" -> "Pass Theory\n Test" -> "Book Practical\n Test";
"Pass Practical\n Test" -> "Buy Car" -> "Buy\n Insurance" -> "Pay Tax" -> "Drive Somewhere\n Nice";
"Decide Which\n Car To Buy" -> "Buy Car"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment