Fix division truncation in algebraic_connectivity