This example uses topojson.neighbors to compute neighboring congressional districts (from the 113th congress) from geographic boundaries by detecting shared edges (arcs). The red district is the hovered district, and the orange district is the neighboring districts.
Changed /mbostock/raw/4090846/us.json to a local referenece
Changed /mbostock/raw/4090846/us-congress-113.json to a local referenece
https://d3js.org/d3.v3.min.js
https://d3js.org/queue.v1.min.js
https://d3js.org/topojson.v1.min.js