Not a question, but sharing a helpful tool to symbolize a feature class while preventing color conflicts between individual features.
Basis is the five color theorem (https://en.wikipedia.org/wiki/Five_color_theorem ) where features that touch each other can't share the same color, but the fewest colors are used to symbolize a dataset. Example is to color every country of the world, with the fewest colors possible.
Tool takes a layer from an active map in ArcGIS Pro (tested in 2.8), and groups the rows in such a way that there is no conflicts between interconnected features based on a field selection.
As it uses networkx, the default environment should be cloned, and networkx installed prior to use.
Curious on feedback if anyone finds this helpful.