Skip to content

Instantly share code, notes, and snippets.

@tmori3y2
Created May 28, 2017 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmori3y2/a873d03ba918fa72e34b8eb90104e15c to your computer and use it in GitHub Desktop.
Save tmori3y2/a873d03ba918fa72e34b8eb90104e15c to your computer and use it in GitHub Desktop.
graphviz node with labeled by subgraph.
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