The formula for the number of spanning trees in Kt1,…,tP is well known. In this paper, we give an algorithm that generates the list of spanning trees in Ks,t.