increase.dot 575 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Case where barycenter increases crossings after 1 iteration
  3. * b3 and b4 are swapped even though they make fewer crossings in their
  4. * original order.
  5. *
  6. * After one sweep, sorting both sides, the number of crossings is reduced to 1
  7. * (from 13 or 14).
  8. *
  9. * tree_100 is a larger example where the higher number of crossings is
  10. * maintained in subsequent iterations.
  11. */
  12. digraph increase
  13. {
  14. a0 -> b0;
  15. a0 -> b1;
  16. a0 -> b2;
  17. a1 -> b3;
  18. a2 -> b3;
  19. a3 -> b4;
  20. a4 -> b0;
  21. a5 -> b1;
  22. a6 -> b2;
  23. a7 -> b3;
  24. }
  25. /* [Last modified: 2008 12 30 at 21:48:59 GMT] */