This coding relies heavily on the code generated by Mike Bostock .. he is the man when it comes to d3.
I must say that this show the connections well for smaller datasets like the state boundaries. The Les Miserables node-link diagram was a bit harder to grasp. I think that there is a point of overload where the vis becomes essentially useless.
https://d3js.org/d3.v3.min.js