Add changes for random graph analysis