Skip to content

Color Graphviz and TikZ edges by emission - #7

Merged
Autoplectic merged 1 commit into
mainfrom
color-edges-by-emission
Aug 13, 2026
Merged

Color Graphviz and TikZ edges by emission#7
Autoplectic merged 1 commit into
mainfrom
color-edges-by-emission

Conversation

@Autoplectic

Copy link
Copy Markdown
Member

Summary

  • Colour edges that share an emission (or input/label symbol) with a stable Tableau palette in Graphviz and TikZ diagrams.
  • Pass color_by_emission=False to draw / to_graphviz / to_tikz for uncoloured edges. Visibly pushdown and Dyck call/return/internal colours still take precedence.

Test plan

  • uv run python -m pytest tests/test_tikz.py tests/test_viz.py -q --numprocesses=0
  • Golden-mean Graphviz output uses two palette colours by default and none when color_by_emission=False
  • TikZ output includes matching draw={rgb,...} colours

Made with Cursor

Shared symbols get a stable categorical palette so machine diagrams
are easier to read; VPA/Dyck kind colours still take precedence.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Autoplectic
Autoplectic merged commit 55868a2 into main Aug 13, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant