A data-driven method is synthesized to predict the optimal topology of an ad-hoc robot network based on the spatial configuration of its robots.