Skip to content

Instantly share code, notes, and snippets.

@jaymzcd
Created January 6, 2015 11:57
Show Gist options
  • Save jaymzcd/d5f072790f58f04eb072 to your computer and use it in GitHub Desktop.
Save jaymzcd/d5f072790f58f04eb072 to your computer and use it in GitHub Desktop.
Basic graph for drawing some techy diagrams
Digraph G {
compound = true;
nodesep = 2;
splines = ortho;
node[shape=record, fontsize=12, fontname=Helvetica, style=filled, fillcolor=white];
subgraph cluster_1 {
label = "System 1";
color = red;
node_1;
}
subgraph cluster_2 {
label = "System 2";
color = darkgreen;
node_2;
}
node_1 -> node_2 [label="Label", dir=both];
node_1 -> node_2 [ltail=cluster_1, lhead=cluster_2, dir=both];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment