Skip to main content
Log in

Graph coloring with decision diagrams

  • Full Length Paper
  • Series B
  • Published:
Mathematical Programming Submit manuscript

Abstract

We introduce an iterative framework for solving graph coloring problems using decision diagrams. The decision diagram compactly represents all possible color classes, some of which may contain edge conflicts. In each iteration, we use a constrained minimum network flow model to compute a lower bound and identify conflicts. Infeasible color classes associated with these conflicts are removed by refining the decision diagram. We prove that in the best case, our approach may use exponentially smaller diagrams than exact diagrams for proving optimality. We also develop a primal heuristic based on the decision diagram to find a feasible solution at each iteration. We provide an experimental evaluation on all 137 DIMACS graph coloring instances. Our procedure can solve 52 instances optimally, of which 44 are solved within 1 minute. We also compare our method to a state-of-the-art graph coloring solver based on branch-and-price, and show that we obtain competitive results. Lastly, we report an improved lower bound for the open instance C2000.9.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3

Similar content being viewed by others

Notes

  1. The operator \(+\) indicates the addition of a set to a set (instead of the union).

  2. The code has been downloaded from https://github.com/heldstephan/exactcolors.

References

  1. Akers, S.B.: Binary decision diagrams. IEEE Trans. Comput. C–27, 509–516 (1978)

    Article  Google Scholar 

  2. Andersen, H.R., Hadzic, T., Hooker, J.N., Tiedemann, P.: A constraint store based on multivalued decision diagrams. In: Proceedings of CP, volume 4741 of LNCS, pp. 118–132. Springer, Berlin (2007)

  3. Barnier, N., Brisset, P.: Graph coloring for air traffic flow management. Ann. Oper. Res. 130, 163–178 (2004)

    Article  MathSciNet  Google Scholar 

  4. Bergman, D., Cire, A.A.: On finding the optimal bdd relaxation. In: Proceedings of CPAIOR, volume 10335 of LNCS, pp. 41–50. Springer, Berlin (2017)

  5. Bergman, D., Cire, A.A., van Hoeve, W.-J., Hooker, J.N.: Decision Diagrams for Optimization. Springer, Berlin (2016)

    Book  Google Scholar 

  6. Bergman, D., Cire, A.A., van Hoeve, W.-J., Hooker J.N.: Variable ordering for the application of BDDs to the maximum independent set problem. In: Proceedings of CPAIOR, volume 7298 of LNCS, pp. 34–49. Springer, Berlin (2012)

  7. Bergman, D., Cire, A.A., van Hoeve, W.-J., Hooker, J.N.: Optimization bounds from binary decision diagrams. INFORMS J. Comput. 26(2), 253–268 (2014)

    Article  MathSciNet  Google Scholar 

  8. Bergman, D., Cire, A.A., van Hoeve, W.-J., Hooker, J.N.: Discrete optimization with decision diagrams. INFORMS J. Comput. 28(1), 47–66 (2016)

    Article  MathSciNet  Google Scholar 

  9. Bergman, D., van Hoeve, W.-J., Hooker, J.N.: Manipulating MDD relaxations for combinatorial optimization. In: Proceedings of CPAIOR, volume 6697 of LNCS, pp. 20–35. Springer, Berlin (2011)

  10. Brélaz, D.: New methods to color the vertices of a graph. Commun. ACM 22(4), 251–256 (1979)

    Article  MathSciNet  Google Scholar 

  11. Bryant, R.E.: Graph-based algorithms for boolean function manipulation. IEEE Trans. Comput. C–35, 677–691 (1986)

    Article  Google Scholar 

  12. Bryant, R.E.: Symbolic boolean manipulation with ordered binary decision diagrams. ACM Comput. Surv. 24, 293–318 (1992)

    Article  Google Scholar 

  13. Cire, A.A., Hooker, J.N.: The separation problem for binary decision diagrams. In: Proceedings of ISAIM, (2014)

  14. Furini, F., Gabrel, V., Ternier, I.-C.: An improved DSATUR-based branch-and-bound algorithm for the vertex coloring problem. Networks 69(1), 124–141 (2017)

    Article  MathSciNet  Google Scholar 

  15. Garey, M.R., Johnson, D.S.: Computers and Intractability - A Guide to the Theory of NP-Completeness. W. H, Freeman and Company (1979)

    MATH  Google Scholar 

  16. Gualandi, S., Malucelli, F.: Exact solution of graph coloring problems via constraint programming and column generation. INFORMS J. Comput. 24(1), 81–100 (2012)

    Article  MathSciNet  Google Scholar 

  17. Held, S., Cook, W., Sewell, E.C.: Maximum-weight stable sets and safe lower bounds for graph coloring. Math. Program. Comput. 4(4), 363–381 (2012)

    Article  MathSciNet  Google Scholar 

  18. van Hoeve, W.-J.: Graph coloring lower bounds from decision diagrams. In Bienstock, D., Zambelli, G. (eds) Proceedings of IPCO, volume 12125 of lecture notes in computer science, pp. 405–418. Springer, Berlin (2020)

  19. Jabrayilov, A., Mutzel, P.: New integer linear programming models for the vertex coloring problem. In: Proceedings of LATIN, volume 10807 of LNCS, pp. 640–652. Springer, Berlin (2018)

  20. Johnson, D.S., Trick, M.A. (eds).: Cliques, coloring, and satisfiability: Second DIMACS implementation challenge, October 11–13, 1993, volume 26 of DIMACS Series in discrete mathematics and theoretical computer science. American Mathematical Society, (1996)

  21. Lee, C.Y.: Representation of switching circuits by binary-decision programs. Bell Syst. Tech. J. 38, 985–999 (1959)

    Article  MathSciNet  Google Scholar 

  22. Lewis, R., Thompson, J.: On the application of graph colouring techniques in round-robin sports scheduling. Comput. Oper. Res. 38(1), 190–204 (2011)

    Article  MathSciNet  Google Scholar 

  23. Malaguti, E., Monaci, M., Toth, P.: An exact approach for the vertex coloring problem. Discrete Optim. 8, 174–190 (2011)

    Article  MathSciNet  Google Scholar 

  24. Mehrotra, A., Trick, M.A.: A column generation approach for graph coloring. INFORMS J. Comput. 8(4), 344–354 (1996)

    Article  Google Scholar 

  25. Méndez-Díaz, I., Zabala, P.: A branch-and-cut algorithm for graph coloring. Discrete Appl. Math. 154, 826–847 (2006)

    Article  MathSciNet  Google Scholar 

  26. Méndez-Díaz, I., Zabala, P.: A cutting plane algorithm for graph coloring. Discrete Appl. Math. 156, 159–179 (2008)

    Article  MathSciNet  Google Scholar 

  27. Morrison, D.R., Sewell, E.C., Jacobson, S.H.: Solving the pricing problem in a branch-and-price algorithm for graph coloring using zero-suppressed binary decision diagrams. INFORMS J. Comput. 28(1), 67–82 (2016)

    Article  MathSciNet  Google Scholar 

  28. Peemöller, J.: A correction to Brelaz’s modification of Brown’s coloring algorithm. Commun. ACM 26(8), 595–597 (1983)

    Article  Google Scholar 

  29. Perez, G., Régin, J.-C.: Constructions and in-place operations for MDDs based constraints. In: Proceedings of CPAIOR, volume 9676 of LNCS, pp. 279–293. Springer, Berlin (2016)

  30. Randall-Brown, J.: Chromatic scheduling and the chromatic number problem. Manage. Sci. 19(4), 456–463 (1972)

    Article  Google Scholar 

  31. Römer, M., Cire, A.A., Rousseau, L.-M.: A local search framework for compiling relaxed decision diagrams. In: Proceedings of CPAIOR, volume 10848 of LNCS, pp. 512–520. Springer, Berlin (2018)

  32. Segundo, P.S.: A new DSATUR-based algorithm for exact vertex coloring. Comput. Oper. Res. 39, 1724–1733 (2012)

    Article  MathSciNet  Google Scholar 

  33. Schrijver, A.: Combinatorial Optimization - Polyhedra and Efficiency. Springer, Berlin (2003)

    MATH  Google Scholar 

  34. Wegener, I.: Branching Programs and Binary Decision Diagrams: Theory and Applications. Society for Industrial and Applied Mathematics, SIAM monographs on discrete mathematics and applications (2000)

    Book  Google Scholar 

  35. Wood, D.C.: A technique for coloring a graph applicable to large-scale timetabling problems. Comput. J. 12(4), 317–322 (1969)

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgements

This work was partially supported by Office of Naval Research Grant No. N00014-18-1-2129 and National Science Foundation Award #1918102.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Willem-Jan van Hoeve.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

van Hoeve, WJ. Graph coloring with decision diagrams. Math. Program. 192, 631–674 (2022). https://doi.org/10.1007/s10107-021-01662-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10107-021-01662-x

Keywords

Mathematics Subject Classification

Navigation