transformations of a graph