Understanding a bit about social networks APIs and create visualization over real data.
remove = []
for node in G.nodes():
if G.degree(node) < 2:
remove.append(node)
G.remove_nodes_from(remove)
Number of nodes: 1277
Number of edges: 11512
Average degree: 18.0298
This indicators identify the most important vertices within a graph.
map=[]
for node in G.nodes():
map.append(G.degree(node))
map.append(G.degree(node))
draw_network with: node_color=map , node_size=map
color_map=[]
size_map= []
test = nx.degree_centrality(G)
for node in G.nodes():
size_map.append(G.degree(node))
color_map.append(test[node])
draw_network with: node_color=map , node_size=size_map