def METHOD_NAME(self, u_node: int) -> None:
    """Finds the component index of a given node"""
    if self.m_component[u_node] != u_node:
        for k in self.m_component:
            self.m_component[k] = self.find_component(k)