Graph Iso/Auto-morphism: A Divide-&-Conquer Approach

Can Lu, Jeffrey Xu Yu, Zhiwei Zhang, Hong Cheng

Abstract

Graph isomorphism and automorphism detection are foundational problems in computer science, essential for tasks ranging from chemical database deduplication to social network analysis. Traditional Individualization-Refinement (IR) algorithms, while highly optimized, often fail to scale to modern real-world networks with millions of vertices. This paper introduces DviCL (Divide-and-conquer Canonical Labeling), a novel framework that overcomes these bottlenecks by partitioning massive graphs into a hierarchical "AutoTree." By processing smaller subgraphs and merging results bottom-up, DviCL achieves massive speedups on sparse real-world datasets where state-of-the-art tools often time out.

The Scalability Challenge

For decades, the gold standard for graph symmetry detection has been the Individualization-Refinement (IR) schema, implemented in tools like nauty, bliss, and traces. These algorithms operate by constructing a backtrack search tree, making "guesses" (individualizations) about vertex mappings and refining partitions.

However, as graphs scale into the millions of vertices, these search trees become unmanageably deep and wide. While IR methods excel at small, complex mathematical benchmarks, they struggle with the "massive but sparse" structure of modern datasets like social networks or web graphs.

Figure 1: A traditional backtrack search tree generated by the bliss tool for a sample graph. Note the complexity of the tree even for a small input.

The DviCL Framework: Divide and Conquer

DviCL shifts the paradigm from a top-down global search to a hierarchical, bottom-up approach. The core of the algorithm is the AutoTree, a structural index that represents the graph's decomposition.

1. The AutoTree and Partitioning

The algorithm identifies "axes" of symmetry to partition the graph into vertex-disjoint subgraphs. It specifically targets structural components like cliques and bicliques, removing edges that do not influence the overall symmetry to split the graph into manageable components.

Figure 5: Hierarchical decomposition of a graph into an AutoTree. The root represents the original graph, which is recursively divided into smaller subgraphs (g1, g2, g3, etc.) for independent processing.

2. Canonical Labeling

Once the graph is decomposed, DviCL computes "canonical labels"—unique structural identifiers—for the leaf subgraphs. These labels are then recursively merged up the AutoTree. This "Combine" step allows the algorithm to determine the symmetry of the entire graph without ever exploring a massive global search space.

3. Optimization through Structural Equivalence

Before processing, DviCL simplifies the graph by identifying "structurally equivalent" vertices—those with identical neighbor sets. This preprocessing step significantly reduces the initial computational load.

Experimental Results

The authors evaluated DviCL against 22 large real-world graphs (e.g., Orkut, Google, WikiTalk) and 9 complex synthetic benchmarks.

  • Robustness: DviCL was the only algorithm to successfully process all 22 real-world datasets within a 2-hour limit.
  • Performance: On datasets like Google and WikiTalk, where traditional tools failed to finish, DviCL-integrated approaches completed the task in under 26 seconds.
  • Efficiency: In 15 out of 22 real-world cases, the AutoTree decomposition was so effective that it reduced the problem to simple polynomial-time calculations, effectively bypassing the need for deep search trees.

Conclusion and Future Work

DviCL demonstrates that the inherent hierarchical structure and local symmetries of real-world graphs are a powerful tool for optimization rather than a hurdle. While its performance boost is most significant on "divisible" sparse graphs, it remains competitive even on rigid synthetic benchmarks. Future research will focus on more sophisticated partitioning strategies to handle highly regular graphs and applying the AutoTree structure to other graph-mining challenges like frequent subgraph discovery.

Summary updated

BibTeX
@inproceedings{lu2019graph,
  author = {Can Lu and Jeffrey Xu Yu and Zhiwei Zhang and Hong Cheng},
  title = {{Graph Iso/Auto-morphism: A Divide-\&-Conquer Approach}},
  booktitle = {SIGMOD},
  year = {2019},
  doi = {10.1145/3448016.3452820},
}
Figure