Greedy Color Symbolizer Toolbox (Symbolize a feature with fewest colors)

02-14-2022 01:15 PM
Occasional Contributor


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 ( ) 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.

0 Kudos
0 Replies