Graphviz: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
Line 70: Line 70:
<quickgv name="G2" theme="warm">
<quickgv name="G2" theme="warm">
rankdir=TB;
rankdir=TB;
 
A -> B [label="1"];
  A -> B [label="1"];
B -> C [label="2"];
  B -> C [label="2"];
C -> B [label="3"];
  C -> B [label="3"];
B -> A [label="4"];
  B -> A [label="4"];
</quickgv>
</quickgv>
|
|
<quickgv name="G3" theme="warm">
<quickgv name="G3" theme="warm">
rankdir=TB;
rankdir=TB;
 
A -> B [xlabel="1"];
subgraph cluster_office {
B -> C [xlabel="2"];
  label="Office";
C -> B [xlabel="3"];
 
B -> A [xlabel="4"];
  A [label="nslookup www.google.com 127.0.0.1"];
  B [label="sudo socat -d -d ..."];
  C [label="DNS Server"];
 
  A -> B [xlabel="1. udp",color="#ff0000"];
  B -> C [xlabel="2. udp",color="#ff0000"];
  C -> B [xlabel="3. udp",color="#0000ff"];
  B -> A [xlabel="4. udp",color="#0000ff"];
}
</quickgv>
</quickgv>
|}
|}

Revision as of 03:01, 26 February 2019

Beautify Edges

Edge Attributes

label arrow other
  • URL labelURL headURL tailURL edgeURL
  • lp head_lp tail_lp xlp
  • headclip tailclip
  • href headhref tailhref edgehref labelhref
  • label headlabel taillabel xlabel
  • headport tailport
  • headtarget tailtarget edgetarget labeltarget
  • headtooltip tailtooltip edgetooltip labeltooltip
  • label_scheme
  • labelangle
  • labeldistance
  • labelfloat
  • labelfontcolor
  • labelfontname
  • labelfontsize

arrowhead arrowsize arrowtail color colorscheme comment constraint decorate dir fillcolor fontcolor fontname fontsize id len lhead ltail minlen nojustify penwidth pos samehead sametail showboxes target tooltip weight

Edge label

All kinds of labels

Difference between label and xlabel

label xlabel