graphviz_test.dot 688 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. digraph G {
  2. subgraph cluster0 { //subgraph<Graph>
  3. node [style=filled color=white];
  4. style = filled;
  5. bgcolor = lightgrey;
  6. subgraph inner { //subgraph<Graph> or subgraph of subgraph
  7. node [color = green];
  8. a1 -> a2 -> a3
  9. };
  10. a0 -> subgraph inner;
  11. label = "process #1";
  12. }
  13. subgraph cluster1 {
  14. node [style=filled color=white];
  15. b0 -> b1 -> b2 -> b3;
  16. label = "process #2";
  17. bgcolor = lightgrey
  18. }
  19. subgraph cluster1 -> subgraph cluster0 [style=dashed color=red]
  20. start -> subgraph inner[style=dotted];
  21. start -> a0;
  22. start -> b0;
  23. a1 -> b3;
  24. b2 -> a3;
  25. a3 -> end;
  26. b3 -> end;
  27. start [shape=Mdiamond];
  28. end [shape=Msquare];
  29. }