grouping prototype
define groups of rows in the reordered adjacency matrix