Graph-Based View Motion Planning for Fruit Detection