edgewise
edgewise is a lightweight and ergonomic Rust 🦀 library for working with graphs.
It provides:
- A simple adjacency-list graph structure
- Random graph generation ((un)weighted, (un)directed)
- Breadth-First Search (BFS)
- Depth-First Search (DFS)
- Dijkstra’s shortest-path algorithm
Example
use ;
let g = new;
let distances = g.dijkstra?;
println!;
Installation
[]
= "0.1"
License
MIT or Apache-2.0