This is the code for Chapter 5, Figure 24 from D3.js in Action to render d3.sankey() (a plugin layout) using a traditional node and edge list as the dataset.