change the creatgraph and pagrank, add the weight