states.gv 492 B

123456789101112131415161718192021
  1. /*
  2. The command line is
  3. dot -Tps -Grankdir=LR states.gv > states.ps
  4. and the file is:
  5. */
  6. digraph states {
  7. size="3,2";
  8. rankdir=LR;
  9. node [shape=ellipse];
  10. empty [label = "Empty"];
  11. stolen [label = "Stolen"];
  12. waiting [label = "Waiting"];
  13. full [label = "Full"];
  14. empty -> full [label = "return"]
  15. empty -> stolen [label = "dispatch", wt=28]
  16. stolen -> full [label = "return"];
  17. stolen -> waiting [label = "touch"];
  18. waiting -> full [label = "return"];
  19. }