dag based on js plumb