private void prepareResults()
    {
        // Preparing the results.
        if (progress != null) {
            this.progress.progress(NbBundle.getMessage(LabelPropagationClusterer.class, "LabelPropagationClusterer.preparingResults"));
        }
        
        // regroup nodes into separate groups based on their labels
        result = getResultingClusters(nodeClusterMapping);
        if (result != null && result.size() > 0 && !isAnimationEnabled) {
            graphColorizer.colorizeGraph(result.toArray(new LabelPropagationCluster[0]));
        }
    }