A Graph theoretic method for the complete reduction of a matrix with a view toward finding its eigenvalues