Created
May 28, 2017 00:22
-
-
Save tmori3y2/a873d03ba918fa72e34b8eb90104e15c to your computer and use it in GitHub Desktop.
graphviz node with labeled by subgraph.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
digraph "XNode Test" { | |
graph [rankdir=LR] | |
subgraph cluster_c0 { | |
graph [bgcolor=white label="Circle Node 0" labeljust=c labelloc=t penwidth=0] | |
node [color=black fillcolor=white height=2 shape=circle style="solid, filled" width=2] | |
c0 [label=""] | |
} | |
subgraph cluster_b0 { | |
graph [bgcolor=white label="Bar Node 0" labeljust=c labelloc=b penwidth=0] | |
node [color=black fillcolor=white height=1 shape=box style="solid, filled" width=0.1] | |
b0 [label=""] | |
} | |
subgraph cluster_c1 { | |
graph [bgcolor=white label="Circle Node 1" labeljust=c labelloc=b penwidth=0] | |
node [color=black fillcolor=white height=2 shape=circle style="solid, filled" width=2] | |
c1 [label=""] | |
} | |
c0 -> b0 | |
b0 -> c1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment