package clustering; import java.util.List; import org.apache.commons.collections15.Transformer; public class ListSeedTransformer implements Transformer{ private List seed_list; public ListSeedTransformer(List vertexSeed) { this.seed_list = vertexSeed; } public Integer transform(V i) { if(seed_list.contains(i)) return 1; else return 0; } }