Simplify the transform API for graphs