| Crates.io | edgewise |
| lib.rs | edgewise |
| version | 0.1.0 |
| created_at | 2025-11-30 18:26:32.025793+00 |
| updated_at | 2025-11-30 18:26:32.025793+00 |
| description | A simple graph library with BFS, DFS, Dijkstra, and random graph generation. |
| homepage | https://github.com/alexfedotov/edgewise |
| repository | https://github.com/alexfedotov/edgewise |
| max_upload_size | |
| id | 1958589 |
| size | 34,448 |
edgewise is a lightweight and ergonomic Rust 🦀 library for working with graphs.
It provides:
use edgewise::{Graph, Weighted};
let g = Graph::new(vec![
vec![(1, Weighted(4)), (2, Weighted(1))],
vec![(3, Weighted(1))],
vec![(1, Weighted(2))],
vec![],
]);
let distances = g.dijkstra(0)?;
println!("{:?}", distances);
[dependencies]
edgewise = "0.1"
MIT or Apache-2.0