import numpy as np
import networkx as nx
import matplotlib.pyplot as plt
#The Barabasi-Albert Model of Preferential Attachment
n = 100
c = 10
adjList = []
#edgeList is still mostly just for drawing with networkx
edgeList = []
#Create initial complete network of c vertices
for i in range(c):
tempList = []
for j in range(c):
#make sure you dont create an edge from i to i
if i != j:
tempList.append(j)
#add (i,j) to the edgeList as long as ii:
edgeList.append((i,j))
adjList.append(tempList)
#add vertices with c edges until size=n
while len(adjList)