inizializzazione di graph e partition
This commit is contained in:
@@ -40,6 +40,20 @@ public class OrderedListSet <E> implements Set<E> {
|
||||
c = in_c;
|
||||
}
|
||||
|
||||
public OrderedListSet(E in_e,Comparator<E> in_c ){
|
||||
L = new NodePositionList<E>();
|
||||
L.addLast(in_e);
|
||||
c = in_c;
|
||||
}
|
||||
|
||||
public OrderedListSet(E in_e){
|
||||
L = new NodePositionList<E>();
|
||||
L.addLast(in_e);
|
||||
c = new DefaultComparator<E>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -83,6 +97,11 @@ public class OrderedListSet <E> implements Set<E> {
|
||||
return L.toString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//////////////////////// inner class override methods from merge template /////
|
||||
|
||||
protected class MergeUnion<E> extends MergeTemplate<E>{
|
||||
|
||||
Reference in New Issue
Block a user