diff --git a/comparison.py b/comparison.py index e44d269..b9f843a 100644 --- a/comparison.py +++ b/comparison.py @@ -154,18 +154,15 @@ fig_graph.savefig("Pointcloud_graph.svg", format='svg') fig = plt.figure(figsize=(15, 10)) axs = fig.subplots(2, 4) -i = 0 for ax in axs: # TODO select corresponding centrality measure method apply(g, seed, weight, convex_hull, ax, closeness, "Closeness") apply(g, seed, weight, convex_hull, ax, pagerank, "PageRank") apply(g, seed, weight, convex_hull, ax, betweeness, "Betweeness") apply(g, seed, weight, convex_hull, ax, eigenvector, "Eigenvector") - apply(g, seed, weight, convex_hull, ax, katz, "Katz") - # TODO to implement - # - Laplacian - # - Leverage - # - Degree (seriously?) - i += 1 + apply(g, seed, weight, convex_hull, ax, katz, "Katz") + apply(g, seed, weight, convex_hull, ax, hits, "Hits") + apply(g, seed, weight, convex_hull, ax, leverage, "Leverage") + apply(g, seed, weight, convex_hull, ax, degree, "Degree") fig.savefig(f"Comparison_Pointcloud.svg", format='svg')