refactor routeEdge to d3adaptor