AffinityMatrixCreator creator = ReflectionUtil.getObjectInstance(
argOptions.getStringOption('e'));
if (argOptions.hasOption("edgeTypeParam"))
creator.setParams(argOptions.getIntOption("edgeTypeParam"));
SimilarityFunction edgeSim = new CosineSimilarity();
SimilarityFunction kernelSim = ReflectionUtil.getObjectInstance(
argOptions.getStringOption("edgeWeighting"));
if (argOptions.hasOption("edgeWeighting"))
kernelSim.setParams(argOptions.getIntOption("edgeWeightingParam"));
creator.setFunctions(edgeSim, kernelSim);