Introduction - If you have any usage issues, please Google them yourself
This code is based on the analysis of the code of the data structure algorithms used in graph theory depth-first closing cable method, as long as the given vertex connectivity of the branch, the number of edges and the corresponding side you can find the number of connected components