- // need to add additional elements because we need to create edges even from
- // the base
- // for example, if we have input <a,b,c>, we need to add additional element
- // <a,b> and <a> to the set
+ for (Iterator iterator = list.iterator(); iterator.hasNext();) {
+ NTuple<Descriptor> t = (NTuple<Descriptor>) iterator.next();
+ if (t.equals(tuple)) {
+ return;
+ }
+ }