finish the Selfrouting and Rerouting algorithm, next stage is to construct the traffic pattern.Thanks Chunzhi