This is the code for Chapter 6, Figure 21 from D3.js in Action exposing a variety of useful network visualization functions explored throughout the chapter here assigned to a series of buttons.
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js
https://d3js.org/queue.v1.min.js