0.2.0 • Published 4 years ago

disjoint-set-reason v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

disjoint-set-reason

An implementation of the Disjoint Set data structure in Reason.

Example

open DisjointSet;
let disjoint_set = makeSet(10); // Creates a Disjoint Set with a size of 10.
disjoint_set -> union(2, 3); // Union set 2 with set 3.
let twos_parent = disjoint_set -> find(2); // Find 2's parent.
Js.log(twos_parent); // Prints out '3'.

Installation

yarn add disjoint-set-reason

Then add disjoint-set-reason to bs-dependencies in your bsconfig.json:

{
  ...
  "bs-dependencies": ["disjoint-set-reason"]
}

Contribute

git clone https://github.com/dylanirlbeck/disjoint-set-reason
cd disjoint-set-reason
yarn

```

```
0.2.0

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago