Guest User

Untitled

a guest
Apr 25th, 2023
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. digraph test{
  2.  
  3. // declare nodes all out of desired order
  4.  
  5. A -> D;
  6. A -> B;
  7. A -> C;
  8. A -> E;
  9.  
  10. B;C;D;E;
  11.  
  12. // even these new connection don't mess up the order
  13. B1 -> F -> G;
  14. C1 -> F -> G;
  15.  
  16. subgraph cluster_foo{{
  17. rank = same;
  18. edge[ style=dotted];
  19. B -> C -> D -> E ;
  20. // E -> D -> C -> B ;
  21. rankdir = LR;
  22. }}
  23.  
  24. subgraph cluster_bar{{
  25. rank = same;
  26. edge[ style=dotted];
  27. // Note the edges going right to left in this cluster; LR order is not enforced
  28. E1 -> D1 -> C1 -> B1 ;
  29. rankdir = LR;
  30. }}
  31.  
  32. E -> E1;
  33. D -> D1;
  34. B -> B1;
  35. C -> C1;
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment