Clarification of fundamental motion using hierarchical clustering and graph theory