Stability Preserving Transformations of Graphs