Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
egraph-visualizer
Advanced tools
Interactive visualizer for e-graphs in [the serialized JSON format](https://github.com/egraphs-good/egraph-serialize/) using Cytoscape JS and Eclipse Layout Kernel.
Interactive visualizer for e-graphs in the serialized JSON format using Cytoscape JS and Eclipse Layout Kernel.
First install Yarn, then run:
yarn install
yarn run [build|start|lint]
Currently, this visualizer is packaged as an AnyWidget JS ESM file with all dependencies included. On every Git tag, a new verison is bundled and published as a Github release.
It is also published as an NPM package, which can be imported and used in the browser like this:
<div id="egraph-visualizer"></div>
<script type="module">
import { mount } from "https://cdn.skypack.dev/egraph-visualizer";
const egraph = {
nodes: {
"//": {
op: "/",
children: ["*", "2"],
eclass: "top",
},
"**": {
op: "*",
eclass: "top",
children: ["a", "/"],
},
"*": {
op: "*",
eclass: "middle",
children: ["a", "2"],
},
"<<": {
op: "<<",
eclass: "middle",
children: ["a", "1"],
},
a: {
op: "a",
eclass: "top",
},
2: {
op: "2",
eclass: "bottom",
},
1: {
op: "1",
eclass: "right",
},
"/": {
op: "/",
eclass: "right",
children: ["2", "2"],
},
},
};
const mounted = mount(document.getElementById("egraph-visualizer"));
mounted.render(JSON.stringify(egraph));
// later can call mounted.unmount() to remove the visualizer
</script>
There is also a demo site published on Github Pages, which allows you to upload and edit a serialized e-graph and see the visualization.
FAQs
This packages aims to help with debugging and teaching e-graphs through an interactive visualization.
The npm package egraph-visualizer receives a total of 9 weekly downloads. As such, egraph-visualizer popularity was classified as not popular.
We found that egraph-visualizer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.