Dynamics of one-dimensional spin models under the line-graph operator