Repository navigation
Route inter-class edges with libavoid-js WASM - #16
Draft
saulshanabrook wants to merge 2 commits into
Draft
saulshanabrook wants to merge 2 commits into
saulshanabrook wants to merge 2 commits into
Conversation
saulshanabrook
had a problem deploying
to
github-pages
November 22, 2026 23:44 — with
GitHub Actions
Failure
Contributor
|
Demo preview deployed for commit https://egraphs-good.github.io/egraph-visualizer/pr-preview/pr-16/ |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #15. Closes #8.
Summary
libavoid-js(Adaptagramslibavoidcompiled to WASM) running inside an inline Web Worker (src/routing.worker.ts,src/routing.ts) with cancellation support onAbortSignal.libavoid.wasmvia a tinyvirtual:libavoid-wasmVite plugin (vite.config.ts) so the publisheddist/index.jsremains 100% self-contained for AnyWidget,esm.sh,jsDelivr, and GitHub Pages subpaths without external.wasmfetches or CORS issues.crossingPenalty = 200+setHateCrossings(true)up to 180 edges) and orthogonal nudging.joinInnerAndOuterPointsinsrc/layout.ts) to prevent small border jogs, with automatic fallback to ELK routes on any routing error.avoidEdgeRoutingoption onVisualizer/mount(), defaulttrue) so you can compare both live in the PR preview demo.Quantitative Comparison (ELK vs
libavoid-js)homepage.jsonpath-proof.json(step 3)lambda_if_elim.jsonmath_simplify_add.jsonlambda_if.jsondiff_power_simple.json(All 6 examples had 0 e-node intersections and 0 console errors.)
Before / After Screenshots
lambda_if_elim.json(41 edges — crossings 100 → 37, -63%)math_simplify_add.json(60 edges — crossings 216 → 166, -23%; bends 244 → 176, -28%)path-proof.json(51 edges — crossings 119 → 72, -39%)lambda_if.json(87 edges — crossings 387 → 276, -29%)diff_power_simple.json(147 edges — crossings 873 → 573, -34%)homepage.json(10 edges — crossings 4 → 3, length -17%)