Text this: The Characterizations of WG Matrix and Its Generalized Cayley–Hamilton Theorem