Add snap to grid for graph.

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>
Merge pull request #130 from GordonSmith/SnapToGrid

Add snap to grid for graph.