AssignNodeIds should return unsigned.