graph layout enhancements (grid snapping / curvature optimization)