added code for hybrid random/scale free graph model