Visualization using D3
Why dont you have a look at the following example?
http://bl.ocks.org/mbostock/2066421

You can also find a fiddle here: http://jsfiddle.net/boatrokr/rk2s5/

Pay attention to the part where the links are defined.