#algorithm #data #structures #graph #utilities #personally

bin+lib recollection

implementations and reimplementations of common data structures and algorithms, and other personally commonly used utilities

2 releases

0.1.1-beta.0 Jul 30, 2021
0.1.0 Jul 29, 2021

#2302 in Data structures

MIT license

40KB
1K SLoC

recollection

Version License: MIT

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

Dependencies

~1–2MB
~40K SLoC