Affinities for topological arrangements in grain structures