Added in more DENSE graph code. Should fix error in SBM graph