vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
898 B

  1. ##"I played some days with making an interface between our ConceptBase system (essentially a database system to store models) and graphviz. One example graph is attached. It is a so-called petri net for Dutch traffic lights. The example is actually taken from a book by Wil van der Aalst." Contributed by Manfred Jeusfeld.
  2. ##Command to produce the output: "neato -Tpng thisfile > thisfile.png"
  3. digraph TrafficLights {
  4. node [shape=box]; gy2; yr2; rg2; gy1; yr1; rg1;
  5. node [shape=circle,fixedsize=true,width=0.9]; green2; yellow2; red2; safe2; safe1; green1; yellow1; red1;
  6. gy2->yellow2;
  7. rg2->green2;
  8. yr2->safe1;
  9. yr2->red2;
  10. safe2->rg2;
  11. green2->gy2;
  12. yellow2->yr2;
  13. red2->rg2;
  14. gy1->yellow1;
  15. rg1->green1;
  16. yr1->safe2;
  17. yr1->red1;
  18. safe1->rg1;
  19. green1->gy1;
  20. yellow1->yr1;
  21. red1->rg1;
  22. overlap=false
  23. label="PetriNet Model TrafficLights\nExtracted from ConceptBase and layed out by Graphviz"
  24. fontsize=12;
  25. }