Computation of minimal rank and path cover number for certain graphs