Load Zachary’s Karate Club (Zachary, 1977). It is a social network of friendships between 34 members of a karate club at a US university from 1970 to 1972. During the study a conflict between instructor ‘Mr. Hi’ and administrator ‘Officer’ led the club to split into two. Half of the members formed a new club around ‘Mr. Hi’; other members found a new instructor or quit karate.


  • path: str. Path to directory which either stores file or otherwise file will be downloaded and extracted there. Filename is karate.gml.


Tuple of adjacency matrix as a np.darray x_train with 34 rows and 34 columns and np.darray y_train of class memberships (0 for ‘Mr.Hi’ and 1 for ‘Officer’).

Zachary, W. W. (1977). An information flow model for conflict and fission in small groups. Journal of Anthropological Research, 33(4), 452–473.