Implement graph tracing.