The algebraic method: the incidence matrix and connectivity