Graphviz: Difference between revisions
Jump to navigation
Jump to search
| Line 165: | Line 165: | ||
=== Direction of subgraph === | === Direction of subgraph === | ||
<quickgv name=" | <quickgv name="LS4" theme="warm"> | ||
rankdir=TB; | rankdir=TB; | ||
subgraph cluster_home { | |||
label="Home"; | |||
A [label="browser https://www.google.com"]; | |||
B [label="sudo socat ... udp4-recvfrom:53 ..."]; | |||
} | } | ||
/* | |||
subgraph cluster_office { | |||
label="Office"; | |||
subgraph cluster_dns { | |||
label="DNS"; | |||
C [label="ssh -NCfR 1053: ..."]; | |||
D [label="socat ... tcp4-listen ..."]; | |||
E [label="DNS Server"]; | |||
} | |||
subgraph cluster_http { | |||
label="HTTP"; | |||
F [label="ssh -NCfR 3128: ..."]; | |||
G [label="ssh -NCfD ..."]; | |||
H [label="HTTP Server"]; | |||
} | |||
} | |||
// DNS Routing | |||
A -> B [xlabel="1. udp",color="#ff0000",constraint=false]; | |||
B -> C [xlabel="2. ssh",color="#ff0000"]; | |||
C -> D [xlabel="3. tcp",color="#ff0000"]; | |||
D -> E [xlabel="4. udp",color="#ff0000"]; | |||
E -> D [xlabel="5. udp",color="#0000ff"]; | |||
D -> C [xlabel="6. tcp",color="#0000ff"]; | |||
C -> B [xlabel="7. ssh",color="#0000ff"]; | |||
B -> A [xlabel="8. udp",color="#0000ff",constraint=false]; | |||
// SOCKS Routing | |||
A -> F [xlabel="9. ssh",color="#ff0000"]; | |||
F -> G [xlabel="10. socks",color="#ff0000"]; | |||
G -> H [xlabel="11. tcp",color="#ff0000"]; | |||
H -> G [xlabel="12. tcp",color="#0000ff"]; | |||
G -> F [xlabel="13. socks",color="#0000ff"]; | |||
F -> A [xlabel="14. ssh",color="#0000ff"]; | |||
*/ | |||
</quickgv> | </quickgv> | ||
Revision as of 05:32, 26 February 2019
Beautify Edges
Edge Attributes
| label | arrow | other |
|---|---|---|
|
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
| label | xlabel | headlabel | taillabel |
|---|---|---|---|
Difference between label and xlabel 1
Attribute label works not good as expected while using in subgraph.
| label | xlabel | label in subgraph | xlabel in subgraph |
|---|---|---|---|
Difference between label and xlabel 2 (constraint=false)
- The label is gone.
- Space of xlabel is not enough.
| label | |
|---|---|
| xlabel | |
| xlabel with minlen=4 |
|
| label in subgraph |
|
| xlabel in subgraph |
|
| xlabel in subgraph with minlen=4 |