nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: fix unrecognized code blocks in doc units
[nit.git]
/
lib
/
core
/
collection
/
union_find.nit
diff --git
a/lib/core/collection/union_find.nit
b/lib/core/collection/union_find.nit
index
b44b7f9
..
6c74ca2
100644
(file)
--- a/
lib/core/collection/union_find.nit
+++ b/
lib/core/collection/union_find.nit
@@
-14,6
+14,7
@@
module union_find
import hash_collection
# Data structure to keeps track of elements partitioned into disjoint subsets
import hash_collection
# Data structure to keeps track of elements partitioned into disjoint subsets
+#
# var s = new DisjointSet[Int]
# s.add(1)
# s.add(2)
# var s = new DisjointSet[Int]
# s.add(1)
# s.add(2)
@@
-139,6
+140,7
@@
class DisjointSet[E]
end
# Are all elements of `es` in the same subset?
end
# Are all elements of `es` in the same subset?
+ #
# var s = new DisjointSet[Int]
# s.add_all([1,2,3,4,5,6])
# s.union_all([1,2,3])
# var s = new DisjointSet[Int]
# s.add_all([1,2,3,4,5,6])
# s.union_all([1,2,3])