A simple example:
```rust
use sinistra::graph::*;
let mut g = BasicGraph::new(HashMapStorage::<&str, ()>::new(), HashMapTopology::new());
let a = g.add_vertex("A");
let b = g.add_vertex("B");
g.add_edge((), a, b);
```
Posts by
1 month ago
0
0
0
0
I made a simple graph data structure crate in Rust based on traits, taking inspiration from BGL (Boost Graph Library). It is not perfect, but still good enough for a first timer. What do you think?
crates.io/crates/sinis... #rustlang #opensource #graph #algorithm
1 month ago
1
0
1
0
Note to self: Going solo in programming is a fool's errand after a point, and I'm way past it
7 months ago
0
0
0
0
FizzBuzz without any conditional statements. #coding #fizzbuzz #programming
9 months ago
1
0
0
0
It is time to add LaTeX math support @medium.com
9 months ago
1
0
0
0
Advertisement