Changed the BA network to undirected graph