Skip to content

Instantly share code, notes, and snippets.

@irneh
Last active August 29, 2015 14:14

Revisions

  1. irneh revised this gist Feb 6, 2015. 1 changed file with 13 additions and 12 deletions.
    25 changes: 13 additions & 12 deletions mongo.gv
    Original file line number Diff line number Diff line change
    @@ -1,41 +1,42 @@
    digraph G {
    fontname = helvetica;
    splines = polyline;
    node [shape = box; fontname = helvetica; style = filled; fillcolor = grey];
    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 = blue];
    p0 [label = "parent_id\n(outbound)"; fillcolor = lightslateblue];
    r0 [label = "region"];
    c0 -> r0;
    c0 -> r0;
    h0 -> r0;
    h0 -> n0;
    n0 -> r0;
    p0 -> r0;
    }
    }
    subgraph cluster1 {
    label = "document";
    c1 [label = "children\n(inbound)"; fillcolor = blue];
    c1 [label = "children\n(inbound)"; fillcolor = lightslateblue];
    h1 [label = "hierarchy"];
    n1 [label = "name"];
    p1 [label = "parent_id\n(outbound)"; fillcolor = red];
    p1 [label = "parent_id\n(outbound)"; fillcolor = indianred];
    r1 [label = "region"];
    c1 -> r1;
    c1 -> r1;
    h1 -> r1;
    h1 -> n1;
    n1 -> r1;
    p1 -> r1;
    }
    }
    subgraph cluster2 {
    label = "document";
    c2 [label = "children\n(inbound)"; fillcolor = red];
    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;
    c2 -> r2;
    h2 -> r2;
    h2 -> n2;
    n2 -> r2;
  2. irneh revised this gist Feb 6, 2015. 1 changed file with 16 additions and 16 deletions.
    32 changes: 16 additions & 16 deletions mongo.gv
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,14 @@
    digraph G {
    fontname = helvetica;
    splines = polyline;
    node [shape = box; fontname = helvetica];
    node [shape = box; fontname = helvetica; style = filled; fillcolor = grey];
    subgraph cluster0 {
    label = "document";
    c0 [label = "children\n(inbound)"; style = filled; fillcolor = green];
    h0 [label = "hierarchy"; style = filled; fillcolor = grey];
    n0 [label = "name"; style = filled; fillcolor = grey];
    p0 [label = "parent_id\n(outbound)"; style = filled; fillcolor = blue];
    r0 [label = "region"; style = filled; fillcolor = grey];
    c0 [label = "children\n(inbound)"; fillcolor = green];
    h0 [label = "hierarchy"];
    n0 [label = "name"];
    p0 [label = "parent_id\n(outbound)"; fillcolor = blue];
    r0 [label = "region"];
    c0 -> r0;
    h0 -> r0;
    h0 -> n0;
    @@ -17,11 +17,11 @@ digraph G {
    }
    subgraph cluster1 {
    label = "document";
    c1 [label = "children\n(inbound)"; style = filled; fillcolor = blue];
    h1 [label = "hierarchy"; style = filled; fillcolor = grey];
    n1 [label = "name"; style = filled; fillcolor = grey];
    p1 [label = "parent_id\n(outbound)"; style = filled; fillcolor = red];
    r1 [label = "region"; style = filled; fillcolor = grey];
    c1 [label = "children\n(inbound)"; fillcolor = blue];
    h1 [label = "hierarchy"];
    n1 [label = "name"];
    p1 [label = "parent_id\n(outbound)"; fillcolor = red];
    r1 [label = "region"];
    c1 -> r1;
    h1 -> r1;
    h1 -> n1;
    @@ -30,11 +30,11 @@ digraph G {
    }
    subgraph cluster2 {
    label = "document";
    c2 [label = "children\n(inbound)"; style = filled; fillcolor = red];
    h2 [label = "hierarchy"; style = filled; fillcolor = grey];
    n2 [label = "name"; style = filled; fillcolor = grey];
    p2 [label = "parent_id\n(outbound)"; style = filled; fillcolor = green];
    r2 [label = "region"; style = filled; fillcolor = green];
    c2 [label = "children\n(inbound)"; fillcolor = red];
    h2 [label = "hierarchy"];
    n2 [label = "name"];
    p2 [label = "parent_id\n(outbound)"; fillcolor = green];
    r2 [label = "region"];
    c2 -> r2;
    h2 -> r2;
    h2 -> n2;
  3. irneh created this gist Feb 5, 2015.
    48 changes: 48 additions & 0 deletions mongo.gv
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    digraph G {
    fontname = helvetica;
    splines = polyline;
    node [shape = box; fontname = helvetica];
    subgraph cluster0 {
    label = "document";
    c0 [label = "children\n(inbound)"; style = filled; fillcolor = green];
    h0 [label = "hierarchy"; style = filled; fillcolor = grey];
    n0 [label = "name"; style = filled; fillcolor = grey];
    p0 [label = "parent_id\n(outbound)"; style = filled; fillcolor = blue];
    r0 [label = "region"; style = filled; fillcolor = grey];
    c0 -> r0;
    h0 -> r0;
    h0 -> n0;
    n0 -> r0;
    p0 -> r0;
    }
    subgraph cluster1 {
    label = "document";
    c1 [label = "children\n(inbound)"; style = filled; fillcolor = blue];
    h1 [label = "hierarchy"; style = filled; fillcolor = grey];
    n1 [label = "name"; style = filled; fillcolor = grey];
    p1 [label = "parent_id\n(outbound)"; style = filled; fillcolor = red];
    r1 [label = "region"; style = filled; fillcolor = grey];
    c1 -> r1;
    h1 -> r1;
    h1 -> n1;
    n1 -> r1;
    p1 -> r1;
    }
    subgraph cluster2 {
    label = "document";
    c2 [label = "children\n(inbound)"; style = filled; fillcolor = red];
    h2 [label = "hierarchy"; style = filled; fillcolor = grey];
    n2 [label = "name"; style = filled; fillcolor = grey];
    p2 [label = "parent_id\n(outbound)"; style = filled; fillcolor = green];
    r2 [label = "region"; style = filled; fillcolor = green];
    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;
    }