Metatheory.jl icon indicating copy to clipboard operation
Metatheory.jl copied to clipboard

Use Penrose to visualize e-graphs

Open adamslc opened this issue 4 years ago • 1 comments
trafficstars

This is a speculative issue. It would be great to visualize an e-graph, and in particular how the saturation proceeds. Arranging the diagram in a visually informative way seems in principle quite difficult. However, Penrose supposedly solves this problem by optimizing diagrams.

adamslc avatar Apr 11 '21 17:04 adamslc

Interesting idea. There's also #41 Something based on https://juliagraphs.org/GraphPlot.jl/ might also be cool to do, but I guess a native GraphViz approach may be the best. See how egg plots e-graphs image

0x0f0f0f avatar Apr 11 '21 23:04 0x0f0f0f

We now have a working visualization tool with GraphViz in src/extras

0x0f0f0f avatar Jan 11 '24 18:01 0x0f0f0f