Fig. 1: Illustration of symmetry-based clustering.

Symmetry-based clustering can be used to identify and extract components of complex materials, such as heterostructures, grain boundaries, or defected structures. The algorithm returns the identified building blocks along with their underlying unit cells.