Automated Analysis of the Origin of Movement: An Approach Based on Cooperative Games on Graphs