The characteristic polynomial of any square matrix of order $n$ can be computed in time $O(n^3)$ by the standard algorithm. So the same applies for computing the characteristic polynomial of graphs of order $n$. For some special classes of graphs, however, like threshold and chain graphs, the time complexity bound can be significantly improved by exploiting their combinatorial structure. For example, for threshold graphs the bound is recently decreased to $O(n\log^2 n)$. Here we put forward some novel ideas based on the divisor technique to obtain another fast algorithm for computing the characteristic polynomial of threshold and chain graphs, as well as some other graph classes.