Almost principal minors of inverse M-matrices