disjoint_set 1.0.0
disjoint_set: ^1.0.0 copied to clipboard
A highly efficient implementation of the Disjoint Set (Union-Find) data structure with union by rank and path compression optimizations.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add disjoint_setWith Flutter:
$ flutter pub add disjoint_setThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
disjoint_set: ^1.0.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:disjoint_set/disjoint_set.dart';