colors.gml 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. # this is a comment line
  2. # colors in nodes/edges are set using 'fill'
  3. # background color of a node is set using `fill'
  4. # border color of a node is set using `outline'
  5. # edge line color is set using `fill'
  6. # the color is html style #rrggbb
  7. # #ff0000 is red, #00ff00 is green, #0000ff is blue
  8. # textcolor or edgelabel color cannot be set and is black
  9. graph [
  10. directed 1
  11. # this sets the background color of node "n0"
  12. node [ id 0 label "n0" graphics [ fill "#f00000" ] ]
  13. # this sets the background and border color of node "n1"
  14. node [ id 1 label "n1" graphics [ outline "#ff0000" fill "#00ff00" ] ]
  15. node [ id 2 label "n2" graphics [ outline "#00ff00" fill "#f0ff00" ] ]
  16. node [ id 3 label "n3" graphics [ outline "#0000ff" fill "#f08000" ] ]
  17. node [ id 4 label "n4" graphics [ fill "#f0000f" ] ]
  18. node [ id 5 label "n5" graphics [ outline "#f0000f" fill "#ffffff" ] ]
  19. node [ id 6 label "WWW" ]
  20. edge [ source 6 target 0 ]
  21. # this sets the edge line color between node 4 and node 0
  22. edge [ source 4 target 0 graphics [ fill "#f000ff" ] ]
  23. # this sets the edge line color between node 0 and node 1 and a edgelabel with a newline in it
  24. edge [ source 0 target 1 label "foo
  25. bar" graphics [ fill "#000ff0" ] ]
  26. edge [ source 1 target 2 graphics [ fill "#abf000" ] ]
  27. edge [ source 2 target 3 graphics [ fill "#f0f000" ] ]
  28. edge [ source 3 target 0 graphics [ fill "#f000f0" ] ]
  29. # this sets the edge line color between node 3 and node 0 and a edgelabel
  30. edge [ source 3 target 0 label "this is a\nedgelabel" graphics [ fill "#ff000b" ] ]
  31. edge [ source 5 target 0 graphics [ fill "#ff000b" ] ]
  32. ]