This is the code for Chapter 7, Figure 19 from D3.js in Action which shows how to use topojson.neighbors().