eweight1.dot 537 B

1234567891011121314
  1. /* edges with a weight example */
  2. digraph {
  3. /* declare the node & style them */
  4. "Node 1" [shape=diamond, penwidth=3, style=filled, fillcolor="#FCD975"];
  5. "Node 2" [style=filled,fillcolor="#9ACEEB" ];
  6. "Node 3" [shape=diamond, style=filled, fillcolor="#FCD975" ];
  7. "Node 4" [style=filled, fillcolor="#9ACEEB" ]
  8. /* declare the edges & style them */
  9. "Node 1" -> "Node 2" [dir=none, weight=1, penwidth=3] ;
  10. "Node 1" -> "Node 3" [dir=none, color="#9ACEEB"] ;
  11. "Node 1" -> "Node 4" [arrowsize=.5, weight=2.]
  12. }