Add partial implementation of graph tracing.