recollection

Crates.iorecollection
lib.rsrecollection
version0.1.1-beta.0
sourcesrc
created_at2021-07-29 18:07:52.216531
updated_at2021-07-30 07:08:00.650406
descriptionimplementations and reimplementations of common data structures and algorithms, and other personally commonly used utilities
homepagehttps://clp.is/projects/recollection
repositoryhttps://github.com/clpi/recollection
max_upload_size
id428940
size61,367
Chris Pecunies (clpi)

documentation

https://docs.rs/recollection

README

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

Commit count: 12

cargo fmt