public class DisjointSets.Subsets extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Gets the number of disjoint subsets.
|
int |
getItem(int s,
int i)
Gets an item from a subset.
|
int |
getSize(int s)
Gets the number of items in a given subset.
|
public int getCount()
public int getSize(int s)
s - the number of the subsetpublic int getItem(int s,
int i)
s - the subset numberi - the index of the item in the subsetCopyright © 2022. All rights reserved.