Determine number of independent graphs given a set of inputs - python