Graph transformation and function analysis