* @version $Revision: 2894 $
*/
public class DifferenceImpl implements Difference {
public LongIndex perform(LongIndex index1, LongIndex index2) throws GraphException {
HashMap<Long, ClosableMap<Long, Set<Long>>> newIndexHashMap = new HashMap<Long, ClosableMap<Long, Set<Long>>>();
LongIndexMem newIndex = new LongIndexMem(newIndexHashMap);
copyEntriesToIndex(index1, newIndex);
removeEntriesFromIndex(index2, newIndex);
return newIndex;
}