d3 connections implementation