Degree-preserving graph dynamics - a versatile process to construct random networks