https://github.com/clpi/recollection
data structure & algorithm implementations in rust
https://github.com/clpi/recollection
Last synced: over 1 year ago
JSON representation
data structure & algorithm implementations in rust
- Host: GitHub
- URL: https://github.com/clpi/recollection
- Owner: clpi
- License: other
- Created: 2021-07-29T17:08:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-27T08:41:06.000Z (over 4 years ago)
- Last Synced: 2025-03-01T23:03:18.087Z (over 1 year ago)
- Language: Rust
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
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](https://clp.is/projects/recollection)
## Install
- Add to your `Cargo.toml` dependencies:
```toml
[dependencies]
recollection = "^0.1"
```
## Usage
- Example for graph (currently the only implemented, or part-implemented, data structure)
```rust
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
- Crate can be found on [crates.io](crates.io/crates/recollection) or [lib.rs](lib.rs/crates/recollection).
- Documentation can be found on [docs.rs](https://docs.rs/recollection)
### Author
👤 **Chris P**
* Website: https://clp.is
* Twitter: [@clp\_is](https://twitter.com/clp_is)
* Github: [@clpi](https://github.com/clpi)