Was able to double the edge insertion speed for large, dense graphs. It look 11 seconds to make a dense grapg of 1000 nodes before, now it takes 6 seconds. Definitely needs more improvement though.