You have unsaved changes
Python
import networkx as nx
import matplotlib.pyplot as plt
import matplotlib as mpl


G = nx.Graph()
edge_list = [(1,2), (1,3), (2,3), (3,4), (2,5), (3,5), (4,6), (5,7), (5,6), (7,8), (8,9), (7,9), (9,10), (10,11), (11,12), (6,11), (6,12), (13,14), (8,14), (10, 15), (14,15)]
G.add_edges_from(edge_list)



d=dict(G.degree)
low, *_, high = sorted(d.values())
norm = mpl.colors.Normalize(vmin=low, vmax=high, clip=True)
mapper = mpl.cm.ScalarMappable(norm=norm, cmap=mpl.cm.coolwarm)


nx.draw_circular(G, 
       nodelist=d,
       node_size=1000,
       node_color=[mapper.to_rgba(i) 
                   for i in d.values()], 
       with_labels=True,
       font_color='black')

plt.show()


print(f"Degree of node [1]: {dict(G.degree)[1]}")
print(f"Degree of node [2]: {dict(G.degree)[2]}")
print(f"Degree of node [3]: {dict(G.degree)[3]}")
print(f"Degree of node [4]: {dict(G.degree)[4]}")
print(f"Degree of node [5]: {dict(G.degree)[5]}")
print(f"Degree of node [6]: {dict(G.degree)[6]}")
print(f"Degree of node [7]: {dict(G.degree)[7]}")
print(f"Degree of node [8]: {dict(G.degree)[8]}")
print(f"Degree of node [9]: {dict(G.degree)[9]}")
print(f"Degree of node [10]: {dict(G.degree)[10]}")
print(f"Degree of node [11]: {dict(G.degree)[11]}")
print(f"Degree of node [12]: {dict(G.degree)[12]}")
print(f"Degree of node [13]: {dict(G.degree)[13]}")
print(f"Degree of node [14]: {dict(G.degree)[14]}")
print(f"Degree of node [15]: {dict(G.degree)[15]}")

print(nx.degree_centrality(G))
print(nx.closeness_centrality(G))
print(nx.betweenness_centrality(G))


print(nx.density(G))
print(nx.shortest_path(G, 1, 15)) 

print(nx.diameter(G))
plt.show()
Degree of node [1]: 2
Degree of node [2]: 3
Degree of node [3]: 4
Degree of node [4]: 2
Degree of node [5]: 4
Degree of node [6]: 4
Degree of node [7]: 3
Degree of node [8]: 3
Degree of node [9]: 3
Degree of node [10]: 3
Degree of node [11]: 3
Degree of node [12]: 2
Degree of node [13]: 1
Degree of node [14]: 3
Degree of node [15]: 2
{1: 0.14285714285714285, 2: 0.21428571428571427, 3: 0.2857142857142857, 4: 0.14285714285714285, 5: 0.2857142857142857, 6: 0.2857142857142857, 7: 0.21428571428571427, 8: 0.21428571428571427, 9: 0.21428571428571427, 10: 0.21428571428571427, 11: 0.21428571428571427, 12: 0.14285714285714285, 13: 0.07142857142857142, 14: 0.21428571428571427, 15: 0.14285714285714285}
{1: 0.28, 2: 0.358974358974359, 3: 0.3684210526315789, 4: 0.34146341463414637, 5: 0.4666666666666667, 6: 0.42424242424242425, 7: 0.45161290322580644, 8: 0.4, 9: 0.4117647058823529, 10: 0.4, 11: 0.4117647058823529, 12: 0.35, 13: 0.25925925925925924, 14: 0.34146341463414637, 15: 0.32558139534883723}
{1: 0.0, 2: 0.053061224489795916, 3: 0.11726844583987442, 4: 0.037650444793301936, 5: 0.3964154892726322, 6: 0.23474620617477757, 7: 0.28723181580324436, 8: 0.17621664050235475, 9: 0.08171114599686029, 10: 0.20656724228152798, 11: 0.17430664573521717, 12: 0.0, 13: 0.0, 14: 0.17255363683935113, 15: 0.08424908424908426}
0.2
[1, 2, 5, 7, 9, 10, 15]
6