gravatar for moreirasarasousa

2 hours ago by

Hi.

I'm trying to obtain statistics to create a characterisation of network features. I want to create a table with a column for the feature and another column for the value found for the network.

This is what i have so far:

network_measures = {
    "n_nodes" : {},
    "n_edges" : {},
    "avg_degree" : {},
    "degree_dist" : {},
    #...
    }

nodes = gr.get_nodes()
network_measures["n_nodes"] = gr.size()[0]
network_measures["n_edges"] = gr.size()[1]
network_measures["avg_degree"] = gr.mean_degree()
network_measures["degree_dist"] = gr.prob_degree()

print(network_measures)

I don't know how to print the data into a table.

Ty



Source link