CS7280 A3
import random import scipy import math import networkx as nx import numpy as np import matplotlib.pyplot as plt import seaborn as sns from networkx.algorithms.community import k_clique_communities from networkx.algorithms.community import greedy_modularity_communities from networkx.algorithms.community import louvain_communities, louvain_partitions from sklearn.metrics.cluster import adjusted_rand_score from sklearn.metrics.cluster import mutual_info_score plt.rcParams.update({ “figure.facecolor”: (1.0, 1.0, 1.0, 1.0), # red with alpha = 30% …