Convert trepo from/to to d3 source/target