Skip to content

Instantly share code, notes, and snippets.

@irneh
Last active August 29, 2015 14:14
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 irneh/d90167b6264c0b7b8108 to your computer and use it in GitHub Desktop.
Save irneh/d90167b6264c0b7b8108 to your computer and use it in GitHub Desktop.
digraph G {
fontname = helvetica;
fontsize = 10;
node [fontname = helvetica; fontsize = 10; style = filled; fillcolor = grey];
edge [fontname = helvetica; fontsize = 10];
subgraph cluster0 {
label = "document";
c0 [label = "children\n(inbound)"; fillcolor = green];
h0 [label = "hierarchy"];
n0 [label = "name"];
p0 [label = "parent_id\n(outbound)"; fillcolor = lightslateblue];
r0 [label = "region"];
c0 -> r0;
h0 -> r0;
h0 -> n0;
n0 -> r0;
p0 -> r0;
}
subgraph cluster1 {
label = "document";
c1 [label = "children\n(inbound)"; fillcolor = lightslateblue];
h1 [label = "hierarchy"];
n1 [label = "name"];
p1 [label = "parent_id\n(outbound)"; fillcolor = indianred];
r1 [label = "region"];
c1 -> r1;
h1 -> r1;
h1 -> n1;
n1 -> r1;
p1 -> r1;
}
subgraph cluster2 {
label = "document";
c2 [label = "children\n(inbound)"; fillcolor = indianred];
h2 [label = "hierarchy"];
n2 [label = "name"];
p2 [label = "parent_id\n(outbound)"; fillcolor = green];
r2 [label = "region"];
c2 -> r2;
h2 -> r2;
h2 -> n2;
n2 -> r2;
p2 -> r2;
}
p0 -> c1 [label = link; style = dotted];
p1 -> c2 [label = link; style = dotted];
p2 -> c0 [label = link; style = dotted];
h0 -> h1 -> h2 -> h0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment