Dot Product Formula for Incidence Vectors