Swimlane/ngx-graph drag and drop editor

How to make drag and drop graph editor using ngx-graph.
Here example graph
Ex: