Simplify solver detection in algebraic_connectivity