if (trace.val) LOG.trace(String.format("Generating MarkovGraphs for %d partitions", costmodel_latch.getCount()));
for (final int partition : this.all_partitions) {
final MarkovGraphsContainer markovs = state.markovs_per_partition[partition];
if (trace.val) LOG.trace(String.format("Calculating Partition #%d probabilities for %d clusters", partition, markovs.size()));
for (Entry<Integer, Map<Procedure, MarkovGraph>> e : markovs.entrySet()) {
// if (debug.val) LOG.debug(String.format("Partition %d - Cluster %d", partition, i++));
// Calculate the probabilities for each graph
for (MarkovGraph markov : e.getValue().values()) {
markov.calculateProbabilities(catalogContext.getAllPartitionIds());