Supervised Classification of Motion Graphs for Swarm Robotics