Infinite transducers on terms denoting graphs