Transforming graph states using single-qubit operations