From 7415614d991a4fba5f3e0f2c0754822dcfa01759 Mon Sep 17 00:00:00 2001 From: "U-LAPTOP-AUAQ2B8B\\sankarshanbhat" Date: Wed, 4 Dec 2019 13:14:35 -0600 Subject: [PATCH] validation matrix and few minor changes --- .../{gn_my_imp.py => girvan_newman_built_in.py} | 0 algorithms/{lovillian.py => lovain.py} | 0 .../{lovillian_my_imp.py => lovain_networkx_imp.py} | 0 algorithms/plot_cluster.py | 13 +++++++++++++ ...ysis.py => plot_spectral_silhouette_analysis.py} | 0 algorithms/{spectrul.py => spectral.py} | 0 .../{spectrul_my_imp.py => spectral_my_imp.py} | 0 7 files changed, 13 insertions(+) rename algorithms/{gn_my_imp.py => girvan_newman_built_in.py} (100%) rename algorithms/{lovillian.py => lovain.py} (100%) rename algorithms/{lovillian_my_imp.py => lovain_networkx_imp.py} (100%) create mode 100755 algorithms/plot_cluster.py rename algorithms/{plot_spectrul_silhouette_analysis.py => plot_spectral_silhouette_analysis.py} (100%) rename algorithms/{spectrul.py => spectral.py} (100%) rename algorithms/{spectrul_my_imp.py => spectral_my_imp.py} (100%) diff --git a/algorithms/gn_my_imp.py b/algorithms/girvan_newman_built_in.py similarity index 100% rename from algorithms/gn_my_imp.py rename to algorithms/girvan_newman_built_in.py diff --git a/algorithms/lovillian.py b/algorithms/lovain.py similarity index 100% rename from algorithms/lovillian.py rename to algorithms/lovain.py diff --git a/algorithms/lovillian_my_imp.py b/algorithms/lovain_networkx_imp.py similarity index 100% rename from algorithms/lovillian_my_imp.py rename to algorithms/lovain_networkx_imp.py diff --git a/algorithms/plot_cluster.py b/algorithms/plot_cluster.py new file mode 100755 index 0000000..caf0a5e --- /dev/null +++ b/algorithms/plot_cluster.py @@ -0,0 +1,13 @@ +import json +import sys + +edges2 = [] +edge_w = [] +fn = sys.argv[1] + +with open(sys.argv[1]) as f: + g_dict = json.load(f) + for k,v in g_dict.iteritems(): + print k,len(v) + + diff --git a/algorithms/plot_spectrul_silhouette_analysis.py b/algorithms/plot_spectral_silhouette_analysis.py similarity index 100% rename from algorithms/plot_spectrul_silhouette_analysis.py rename to algorithms/plot_spectral_silhouette_analysis.py diff --git a/algorithms/spectrul.py b/algorithms/spectral.py similarity index 100% rename from algorithms/spectrul.py rename to algorithms/spectral.py diff --git a/algorithms/spectrul_my_imp.py b/algorithms/spectral_my_imp.py similarity index 100% rename from algorithms/spectrul_my_imp.py rename to algorithms/spectral_my_imp.py