create and output all link relationship as json
Merge https://github.com/AranyaLi/RankingALg