Zoom.llb includes an example that manipulates the graph cursors to implement programmatic zooming on graphs.