add function relating to graph's transpostion