I am using Dagre and it works fine. The problem is that the drag and drop do not work in D3 V4 version. I am able to make the node move around. But not its edges and edge label.