# Plot 5 - Average clustering coefficient vs error
fileName = "/AverageClusteringCoefficient_Vs_Error.html"
scatter = plot.ScatterPlot(folderName + fileName,
                           "Small World Graphs Optimization using GA",
                           "Average Clustering Coefficient vs Performance",
                           "Average Clustering Coefficient",
                           "Mean Square Error")
scatter.setSeries("Network Performance", averageClusteringCoefficientList,
                  errorList)
scatter.createOutput()

# Plot 6 - Histograms
utilityGA.plotHistogram(averageDegreeList, 5, (0, 1),
                        folderName + "/AverageDegreeHistogram.html",
                        "Histogram - Average Degree",
                        "for the best 100 found in GA", "Average Degree",
                        "Count", "Histogram")
utilityGA.plotHistogram(averagePathLengthList, 5, (0, 1),
                        folderName + "/AveragePathLengthHistogram.html",
                        "Histogram - Average Path Length",
                        "for the best 100 found in GA", "Average Path Length",
                        "Count", "Histogram")
utilityGA.plotHistogram(averageDiameterList, 5, (0, 1),
                        folderName + "/DiameterHistogram.html",
                        "Histogram - Diameter", "for the best 100 found in GA",
                        "Diameter", "Count", "Histogram")
utilityGA.plotHistogram(averageClusteringCoefficientList, 5, (0, 1),
                        folderName + "/AverageCCHistogram.html",
                        "Histogram - Average Clustering Coefficient",
                        "for the best 100 found in GA",
# Plot 2 - Average degree vs error
fileName = "/AverageDegree_Vs_Error.html"
scatter = plot.ScatterPlot(folderName+fileName, "Small World Graphs Optimization using GA", "Average Degree vs Performance", "Average Degree", "Mean Square Error")
scatter.setSeries("Network Performance", averageDegreeList, errorList)
scatter.createOutput()


# Plot 3 - Average path length vs error
fileName = "/AveragePathLength_Vs_Error.html"
scatter = plot.ScatterPlot(folderName+fileName, "Small World Graphs Optimization using GA", "Average Path Length vs Performance", "Average Path Length", "Mean Square Error")
scatter.setSeries("Network Performance", averagePathLengthList, errorList)
scatter.createOutput()

# Plot 4 - Diameter vs error
fileName = "/Diameter_Vs_Error.html"
scatter = plot.ScatterPlot(folderName+fileName, "Small World Graphs Optimization using GA", "Diameter vs Performance", "Diameter", "Mean Square Error")
scatter.setSeries("Network Performance", averageDiameterList, errorList)
scatter.createOutput()

# Plot 5 - Average clustering coefficient vs error
fileName = "/AverageClusteringCoefficient_Vs_Error.html"
scatter = plot.ScatterPlot(folderName+fileName, "Small World Graphs Optimization using GA", "Average Clustering Coefficient vs Performance", "Average Clustering Coefficient", "Mean Square Error")
scatter.setSeries("Network Performance", averageClusteringCoefficientList, errorList)
scatter.createOutput()

# Plot 6 - Histograms
utilityGA.plotHistogram(averageDegreeList, 5, (0,1), folderName+"/AverageDegreeHistogram.html", "Histogram - Average Degree", "for the best 100 found in GA", "Average Degree", "Count", "Histogram")
utilityGA.plotHistogram(averagePathLengthList, 5, (0,1), folderName+"/AveragePathLengthHistogram.html", "Histogram - Average Path Length", "for the best 100 found in GA", "Average Path Length", "Count", "Histogram")
utilityGA.plotHistogram(averageDiameterList, 5, (0,1), folderName+"/DiameterHistogram.html", "Histogram - Diameter", "for the best 100 found in GA", "Diameter", "Count", "Histogram")
utilityGA.plotHistogram(averageClusteringCoefficientList, 5, (0,1), folderName+"/AverageCCHistogram.html", "Histogram - Average Clustering Coefficient", "for the best 100 found in GA", "Average Clustering Coefficient", "Count", "Histogram")