Removed unnecessary for loops after realizing a better way to add the data to the Graph.