Keep graph nodes within bounding box