Adding node reference in arcs