| Constructor and Description |
|---|
LRPartitionSet(DFSTree<V,E> tree) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.util.List<E> class1,
java.util.List<E> class2)
Marks that all edges belonging to the first list should be in the same partition.
|
boolean |
organizePartitions()
Forms partitions
|
void |
printPartitions()
Prints partitions
|
public boolean add(java.util.List<E> class1, java.util.List<E> class2)
class1 - The first list of edgesclass2 - The second list of edgestrue if there was no contradiction, false otherwisepublic boolean organizePartitions()
true if partitions can be formed, false otherwisepublic void printPartitions()