egraphs-good / egraph-serialize

egraph <-> json
MIT License
8 stars 3 forks source link

Make graphviz colors consistent and fix color bug #9

Closed saulshanabrook closed 7 months ago

saulshanabrook commented 8 months ago

This PR makes the colors assigned to different types consistent across multiple e-graphs with the same types. Previously, they could differ, which would lead to harder to understand diffs.

It also fixes a bug where if there were more types than the max number of colors, it would assign an incorrect color ID.