Description
egui_graphs is a Rust library that provides a GraphView widget for the egui GUI framework, so you can show and interact with graphs inside egui apps. It is built on egui and petgraph, the Rust graph library. The README lists support for native and WebAssembly builds, layouts including a custom layout mechanism, zooming and panning, reporting of node and edge interactions such as click, double click, select, hover and drag, labels for nodes and edges, and dark and light themes taken from egui's styles. It also offers hooks to style node and edge strokes dynamically. A basic example walks through an app struct, a helper that creates three nodes and three edges, an eframe App implementation that shows the GraphView, and running the app. The README also covers custom renderers and running the web demo locally. It says the project is not in active development and invites people to fork it and adapt it to their needs. The source is public on GitHub.…
Highlights
- GraphView widget for egui
- Built on egui and petgraph
- Zoom, pan and custom layouts
- Click, drag, select and hover events
- Native and WebAssembly builds
Ratings & Reviews
No ratings yet
Be the first to rate Egui Graphs.
People also visit

v-network-graph
An interactive SVG based network-graph visualization component for Vue 3
Egui Graphs FAQ
What is egui_graphs?
It is a Rust library that adds an interactive graph visualization widget to the egui framework, using the petgraph library for graph data.
How do I add it to an app?
The README's basic setup example walks through a BasicApp struct, building the graph, and showing the GraphView inside an eframe App.
Is it maintained?
The README says the project is not in active development, and suggests forking it if you need changes.
Can it run in a browser?
Yes. The README lists WebAssembly builds and a web demo that shows the widget's options.
What are the best Egui Graphs alternatives?
Popular alternatives to Egui Graphs include 3d Force Graph, Viser and Gridstack.js. See all Egui Graphs alternatives





