,new Graph(toCluster.getNodes()).countTransitions()
));
Search gs = null;
if(td.getSearchType().equals("GA")){
gs = new GeneticAlgorithmSearch();
}else if(td.getSearchType().equals("RMHC")){
gs = new RandomMutationHillClimbingSearch();
}else{
throw new RuntimeException(String.format("Chosen search type %s is not a valid option", td.getSearchType()));
}