转载:https://www.cnblogs.com/cyjb/p/UnionFindSets.html
https://blog.csdn.net/hzf0701/article/details/107597903