TL;DR
HyColor is a new hybrid heuristic algorithm for the Graph Coloring Problem (GCP) that successfully bridges the gap between large-scale sparse networks and small dense graphs. By combining local clique-finding via an exact solver, dynamic graph reduction, and a novel mixed-degree greedy heuristic, HyColor outperforms existing state-of-the-art algorithms across 209 benchmark instances, finding the optimal coloring in 128 cases.
What Problem Does This Paper Address?
The Graph Coloring Problem (GCP)—finding the minimum number of colors needed to color a graph's vertices so no two adjacent vertices share a color—is a classic NP-hard problem with massive real-world applications in scheduling, register allocation, and network routing.
Existing GCP algorithms typically suffer from a polarization problem. They either excel at small, dense graphs by using heavy computational machinery (like SAT solvers) or they target massive, sparse graphs using fast but less accurate greedy heuristics. They rarely do both well. As networks grow to millions of vertices, exact algorithms become intractable, and standard heuristics often yield poor colorings. The authors introduce HyColor to provide a balanced, highly efficient approach that scales to large sparse graphs while remaining competitive on dense ones.
Methods
HyColor achieves its efficiency through a three-phase hybrid architecture:
- Local Lower-Bound Refinement (
EXACTLB): The algorithm first finds a high-quality lower bound on the chromatic number by identifying cliques. It iteratively expands a dense local subgraph and leverages an advanced industrial solver (Gurobi) to find the maximum clique within that local neighborhood. - Dynamic Graph Reduction (
REDURULE): Armed with a tight lower bound ($\ell$), HyColor systematically prunes the graph. It recursively deletes any vertex with a degree less than $\ell$ (termed $\ell^-$-vertices). Because deleting a vertex changes the degrees of its neighbors, this triggers a cascading reduction that significantly shrinks the working graph. - Mixed-Degree Greedy Coloring (
MDDCOLOR): For the remaining unpruned graph, HyColor uses core decomposition combined with a novel "mixed degree" metric to order vertices. The mixed degree balances a vertex's uncolored neighbors against its already-colored neighbors, ensuring a smarter, more adaptive greedy coloring sequence.
The table below highlights how HyColor fits into the broader landscape of GCP algorithms:
An illustration of how the graph reduction and subsequent vertex restoration work can be seen in the authors' example graph:
Datasets
The authors evaluated HyColor across four diverse, well-established benchmarks totaling 209 graph instances:
- DIMACS: Small, dense graphs traditionally used to test hard combinatorial problems.
- DIMACS10: Large, sparse graphs originating from graph partitioning and clustering challenges.
- SNAP (Stanford Large Network Dataset Collection): Real-world networks including social networks, communication networks, and web graphs.
- Network Data Repository (NDR): A massive, multi-domain network repository containing large-scale real-world graphs.
Key Insights and Ideas
- The Power of Local Exactness: Instead of trying to run an exact solver on a massive graph, isolating dense local subgraphs (up to 1,000 vertices) and solving them exactly provides a highly accurate global lower bound very quickly.
- Dynamic Cascading Pruning: Traditional static reduction rules miss optimization opportunities. By dynamically updating vertex degrees during the reduction phase (
REDURULE), HyColor strips away massive portions of sparse graphs, leaving a much simpler core to color. - Look-Ahead Greedy Ordering: Standard greedy coloring fails because it doesn't adapt. HyColor’s mixed-degree approach looks at both the colored and uncolored neighborhoods of a vertex, preventing the algorithm from making short-sighted coloring choices that cause color inflation later.
Key Results
HyColor was tested against three state-of-the-art algorithms: FASTCOLOR, LS+I-DSATUR, and GC-SLIM.
- Dominant Accuracy: HyColor achieved the best solution in 194 out of 209 instances (over 93%). In 34 of these instances, it strictly beat every other algorithm.
- Proven Optimality: It successfully determined the exact chromatic number and achieved the optimal coloring in 128 instances.
- Sparse Graph Sweep: HyColor achieved a perfect 100% success rate for best colorings on the SNAP benchmark and won 131 out of 133 instances in the Network Data Repository.
- Dense Graph Competitiveness: While specialized dense-graph solvers like GC-SLIM hold a slight edge on specific dense DIMACS instances, HyColor still outperformed other sparse specialists (FASTCOLOR and LS+I-DSATUR) on dense terrain.
Limitations and Future Work
Despite its strong performance, HyColor has a few limitations:
- Dense Graph Bottlenecks: On certain notoriously difficult, small dense graphs (such as the
C2000,C4000, andDSJCfamilies), it still slightly underperforms compared to pure SAT-based local improvement methods. - Ordering Dependency: The greedy coloring phase remains sensitive to the initial vertex ordering.
For future work, the authors plan to enhance HyColor's performance on dense graphs to improve its overall robustness. They also suggest adapting this hybrid framework to related optimization challenges, such as partition coloring and total coloring in large-scale networks.
Summary updated