Extract common find_fiedler function in algebraic_connectivity