snapapps / edgy

a visual programming language inspired by Scratch
http://snapapps.github.io/
GNU Affero General Public License v3.0
51 stars 21 forks source link

Add Disjoint Set ADT #411

Closed cyderize closed 8 years ago

cyderize commented 8 years ago

Adds a disjoint set ADT with the following operations:

Note that the watcher morph for this ADT is based on lists, and is not awfully efficient (but better than not being able to see anything at all).

This could be used for example in Kruskal's algorithm for the MST.

Closes #407.

stevenbird commented 8 years ago

This works nicely, thanks @cyderize