I have a been able to run the run this:
import numpy as np
import networkx as nx
import matplotlib.pyplot as plt
n = 20
m = 3
G_barabasi = nx.barabasi_albert_graph(n,m)
plt.figure(figsize=(12,8))
nx.draw(G_barabasi, node_size=4)
plt.show()
The above code was able to plot the nodes and edges.
However, I need to obtain the degree of distribution of the Barabasi-Albert Model or rather the power-law degree distribution.
