d3 graph connectivity