Difference between revisions of "Viz/graphviz.org+doc+info+attrs.html"

From VistApedia
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
  digraph G {
 
  digraph G {
 
   graph [class="cats"];
 
   graph [class="cats"];
 
+
 
   subgraph cluster_big {
 
   subgraph cluster_big {
 
     graph [class="big_cats"];
 
     graph [class="big_cats"];
 
+
 
     "Lion" [class="yellow social"];
 
     "Lion" [class="yellow social"];
 
     "Snow Leopard" [class="white solitary"];
 
     "Snow Leopard" [class="white solitary"];
Line 25: Line 25:
  
 
[[File:multi-color_edges.svg]]
 
[[File:multi-color_edges.svg]]
 +
 +
 +
digraph G {
 +
  a -> c;
 +
  a -> b;
 +
  b -> c [constraint=false];
 +
}
 +
 +
[[File:triangle.svg]]

Latest revision as of 04:05, 5 February 2021

graph G {
  B \-\- A [taillabel = "tail"]
}

Non-directed-graph.svg


digraph G {
 graph [class="cats"];

 subgraph cluster_big {
   graph [class="big_cats"];

   "Lion" [class="yellow social"];
   "Snow Leopard" [class="white solitary"];
 }
}

Lions.svg

digraph G {

 a -> b [dir=both color="red:blue"]
 c -> d [dir=none color="green:red;0.25:blue"]

}

Multi-color edges.svg


digraph G {

 a -> c;
 a -> b;
 b -> c [constraint=false];

}

Triangle.svg