# A note on insecure 3-Colorings of graph vertices

**URL:** <https://community.wolfram.com/t/a-note-on-insecure-3-colorings-of-graph-vertices/20174>\
**Category:** Staff Picks\
**Tags:** graphics-and-visualization, graphs-and-networks, staff-pick, publication-materials\
**Created:** [June 17, 2022, 1:35pm UTC](https://community.wolfram.com/t/a-note-on-insecure-3-colorings-of-graph-vertices/20174 "2022-06-17T13:35:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertcowen](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/robertcowen/32/35780_2.png) [@robertcowen](https://community.wolfram.com/u/robertcowen)\
**Post date:** [June 17, 2022, 1:35pm UTC](https://community.wolfram.com/t/a-note-on-insecure-3-colorings-of-graph-vertices/20174/1 "2022-06-17T13:35:45Z")

</div>

_WOLFRAM MATERIALS for the ARTICLE:_

> Robert Cowen (2021).

> _Mixing Numbers and Unfriendly Colorings of Graphs_.

> The Mathematica Journal, **23**.

> [Mixing Numbers and Unfriendly Colorings of Graphs « The Mathematica Journal](https://doi.org/10.3888/tmj.23-4)

> [Full article in PDF](https://content.wolfram.com/uploads/sites/19/2021/09/Cowen.pdf).

The Mathematica language has a robust set of built-in functions for graph theory explorations. Many of them come from the old Combinatorica package developed by Steven Skiena. However there is not much that deals with graph coloring. Out of necessity, I have created my own functions and have recently published a paper in The Mathematica Journal and I am adding a notebook with additional material here. Hopefully this will be useful to researchers in graph theory and encourage others to develop additional useful material for those interested in graph theory coloring problems.

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/15710137-d30c-4383-9b0a-e687378c67ec)

[Insecure 3-Coloring5.nb](https://community.wolfram.com/uploads/short-url/qJykUPpt5bcXmvFs4tCMCbPZZj4.nb) (222 KB)

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [June 17, 2022, 2:54pm UTC](https://community.wolfram.com/t/a-note-on-insecure-3-colorings-of-graph-vertices/20174/2 "2022-06-17T14:54:16Z")

</div>

![news-congrads-kkluyshnik-02-04-19.jpg](https://global.discourse-cdn.com/wolfram/original/3X/6/a/6a310c2d0904616faf4e6e148260c9f29ab9f4eb.jpeg) – you have earned _ **Featured Contributor Badge** _ ![2015-11-02_10-07-11.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50e59c9ead62f729e7130d3ea1482555a75602b6.png)  
Your exceptional post has been selected for our editorial columns _ **Staff Picks** _ [http://wolfr.am/StaffPicks](http://wolfr.am/StaffPicks) and _ **Publication Materials** _ [https://wolfr.am/PubMat](https://wolfr.am/PubMat) and [Your Profile](http://community.wolfram.com/web/robertcowen) is now distinguished by a _ **Featured Contributor Badge** _ and is displayed on the [Featured Contributor Board](https://community.wolfram.com/people). Thank you!

---

<div class="post-metadata">

**Author:** ![robertcowen](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/robertcowen/32/35780_2.png) [@robertcowen](https://community.wolfram.com/u/robertcowen)\
**Post date:** [June 17, 2022, 8:30pm UTC](https://community.wolfram.com/t/a-note-on-insecure-3-colorings-of-graph-vertices/20174/3 "2022-06-17T20:30:19Z")

</div>

Thanks for this honor! I should also like to thank George Beck who was the editor for my Mathematica Journal articles and who has taught me much about the Mathematica programming language.

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/szhorvat/32/3531_2.png) [@szhorvat](https://community.wolfram.com/u/szhorvat)\
**Post date:** [July 15, 2022, 9:24am UTC](https://community.wolfram.com/t/a-note-on-insecure-3-colorings-of-graph-vertices/20174/4 "2022-07-15T09:24:37Z")

</div>

If you work with graphs and colourings in Mathematica, you may find the [IGraph/M](http://szhorvat.net/mathematica/IGraphM/) package interesting. It has had very competitive graph colouring functionality for many years now, and also provides most graph-related functionality from the old Combinatorica, but in a much more performant way.

```auto
Needs["IGraphM`"]

PetersenGraph[VertexSize -> Large, EdgeStyle -> Thickness[0.05]] // 
  IGVertexMap[ColorData[97], VertexStyle -> IGMinimumVertexColoring] //
  IGEdgeMap[ColorData[99], EdgeStyle -> IGMinimumEdgeColoring]

```

 ![Screenshot2022-07-15at11.23.45](https://global.discourse-cdn.com/wolfram/original/3X/5/f/5f8f134e2016e2292113306cbb4ea45f93b86fa0.png)
