2 releases
0.1.1-beta.0 | Jul 30, 2021 |
---|---|
0.1.0 | Jul 29, 2021 |
#2247 in Data structures
40KB
1K
SLoC
recollection
implementations and re-implementations of common data structures and algorithms in rust very much so a work in progress in its infant stage
🏠 Homepage
Install
- Add to your
Cargo.toml
dependencies:
[dependencies]
recollection = "^0.1"
Usage
- Example for graph (currently the only implemented, or part-implemented, data structure)
use recollection::Graph;
let g = Graph::<&'static str, usize>::new();
let p1 = g.add("Person 1");
let p2 = g.add("Person 2");
let p1_p2 = g.add_edge(p1, p2, 4 as usize);
g.remove_edge(p1_p2);
g.remove(p1);
Further Info
Author
👤 Chris P
- Website: https://clp.is
- Twitter: @clp_is
- Github: @clpi
Dependencies
~1–1.8MB
~38K SLoC