Graphviz Samples

From Jonathan D. Lettvin

Jump to: navigation, search

Illustrating both graphviz and its mediawiki extension

Text used to generate the above diagram

digraph code {

 subgraph cluster_project {
   label = "project management";
   "accept project" -> "get source" -> "report status" -> "end project";
 }

 subgraph cluster_coding {
   label = "The coding cycle";
   "modify source" -> "compile" -> "remove errors" -> "test functionality" -> "test coverage";
   "test coverage" -> "modify source";
   "test coverage" -> "stop when finished";
 }

 subgraph cluster_svn {
   label = "The svn usage cycle";
   style=filled;
   color=lightgrey;
   node [style=filled,color=white];
   "svn checkout" -> "svn copy" -> "svn add" -> "svn update" -> "svn merge" -> "svn commit";
   "svn add" -> "modify source";
   "stop when finished" -> "svn update";
   "svn merge" -> "svn add";
   "svn commit" -> "end project";
 }

 "get source" -> "svn checkout";
 "svn merge" -> "report status";

}
Personal tools