Graph imlementation using D3