Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sehe
Created September 12, 2011 18: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 sehe/1211974 to your computer and use it in GitHub Desktop.
Save sehe/1211974 to your computer and use it in GitHub Desktop.
digraph G {
graph [layout=dot/*circo*/ rankdir=TB];
edge[style=invisible,arrowhead=none];
{ rank=same; a->b->c->d; }
{ rank=same; e->f->g->h; }
{ rank=same; i->j->k->l; }
edge[style=solid,arrowhead=normal];
{ a; c; d } -> { e; f; } // [label="3"]
{ a; c; d } -> { g; h; } // [label="1"]
{ b; } -> { e; f; g; h; } // [label="1"]
{ e;f;g;h; } -> { i;j;k;l; } // [label="6"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment