from data,to data,nodes with ids