https://blazerbestcheapprice.blogspot.com/2024/07/finding-all-connected-components-of.html
Finding All Connected Components Of An Undirected Graph