switch.gv 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. digraph G {
  2. graph [center=true rankdir=LR bgcolor="#808080"]
  3. edge [dir=none]
  4. node [width=0.3 height=0.3 label=""]
  5. { node [shape=circle style=invis]
  6. 1 2 3 4 5 6 7 8 10 20 30 40 50 60 70 80
  7. }
  8. { node [shape=circle]
  9. a b c d e f g h i j k l m n o p q r s t u v w x
  10. }
  11. { node [shape=diamond]
  12. A B C D E F G H I J K L M N O P Q R S T U V W X
  13. }
  14. 1 -> a -> {A B} [color="#0000ff"]
  15. 2 -> b -> {B A} [color="#ff0000"]
  16. 3 -> c -> {C D} [color="#ffff00"]
  17. 4 -> d -> {D C} [color="#00ff00"]
  18. 5 -> e -> {E F} [color="#000000"]
  19. 6 -> f -> {F E} [color="#00ffff"]
  20. 7 -> g -> {G H} [color="#ffffff"]
  21. 8 -> h -> {H G} [color="#ff00ff"]
  22. { edge [color="#ff0000:#0000ff"]
  23. A -> i -> {I K}
  24. B -> j -> {J L}
  25. }
  26. { edge [color="#00ff00:#ffff00"]
  27. C -> k -> {K I}
  28. D -> l -> {L J}
  29. }
  30. { edge [color="#00ffff:#000000"]
  31. E -> m -> {M O}
  32. F -> n -> {N P}
  33. }
  34. { edge [color="#ff00ff:#ffffff"]
  35. G -> o -> {O M}
  36. H -> p -> {P N}
  37. }
  38. { edge [color="#00ff00:#ffff00:#ff0000:#0000ff"]
  39. I -> q -> {Q U}
  40. J -> r -> {R V}
  41. K -> s -> {S W}
  42. L -> t -> {T X}
  43. }
  44. { edge [color="#ff00ff:#ffffff:#00ffff:#000000"]
  45. M -> u -> {U Q}
  46. N -> v -> {V R}
  47. O -> w -> {W S}
  48. P -> x -> {X T}
  49. }
  50. { edge [color="#ff00ff:#ffffff:#00ffff:#000000:#00ff00:#ffff00:#ff0000:#0000ff"]
  51. Q -> 10
  52. R -> 20
  53. S -> 30
  54. T -> 40
  55. U -> 50
  56. V -> 60
  57. W -> 70
  58. X -> 80
  59. }
  60. }