Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualizing e-graphs with graphviz #26

Open
alt-romes opened this issue Aug 14, 2023 · 3 comments
Open

Visualizing e-graphs with graphviz #26

alt-romes opened this issue Aug 14, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@alt-romes
Copy link
Owner

At some point in the development process there was a backend that allowed an e-graph to be rendered as a graphviz graph.
This was imensely useful until I started bumping into some bugs with the original implementation, which made it less useful.

Unfortunately it fell out of date during the evolution of the project, so it no longer compiles (Data.Equality.Graph.Dot, that is conditionally compiled when using -f+vizdot)

I think we should rewrite this backend, as it can be imensely useful for users debugging their e-graphs and representations.

@alt-romes alt-romes added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Aug 18, 2023
@BinderDavid
Copy link
Contributor

I tried cabal build -f vizdot and currently run into the problem documented here ivan-m/graphviz#54 (with GHC 9.4.5) Maybe graphviz needs to first be fixed upstream?

@BinderDavid
Copy link
Contributor

Ok, I'll pick this up and get it working again, since I also find it super useful for debugging :)

@alt-romes
Copy link
Owner Author

alt-romes commented Oct 22, 2023

Thanks David, I'm happy to hear so. It might be useful to look at the egg rust implementation of the graphviz printer, as they have already figured some of it out.

(I'm also curious about what you're working on, but we'll get the chance to talk about it at the end of the week, hopefully 😉)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants