Add support for connection toggling to d3-graphics.html