Canonical labeling is a process used primarily in graph theory to assign a unique label to each isomorphism class of graphs, which enables efficient graph comparison and classification. This process is essential for tasks like graph isomorphism testing and automorphism group calculation, providing a standardized form that is consistent across all equivalent representations of the graph.