Skip to content

Instantly share code, notes, and snippets.

@repomaa
Created July 2, 2012 19:24
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 repomaa/3035113 to your computer and use it in GitHub Desktop.
Save repomaa/3035113 to your computer and use it in GitHub Desktop.
A graph
digraph G {
D [shape="circle"];
A [shape="circle"];
S [shape="circle"];
C [shape="circle"];
B [shape="circle"];
E [shape="circle"];
root=S;
S -> A [weight="1",label="1"];
S -> B [weight="2",label="2"];
S -> C [weight="3",label="3"];
S -> D [weight="4",label="4"];
B -> E [weight="1",label="1"];
E -> A [weight="2",label="2"];
A -> D [weight="2",label="2"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment