Are the 2 verticies connected?
valueA(*): the first vertex to comparevalueB(*): the second vertex to compare
(boolean): true if the verticies are connected, false if not
[values](Array): an array of verticies to add to the set
(number): The number of sets
Find the id for a value
value(*): the value to lookup
(number): the identity of the set containing the item
Returns a 2D array of the unique sets and the values in those sets
(Array): a 2D array containing the disjoint sets
Join the verticies if not already in the same set
valueA(*): the first vertex to connectvalueB(*): the second vertex to connect