“…In particular, for certain classes of graphs, the structure of their modular decomposition trees (and in fact their prime graphs) ensures that each tree node can be processed in time linear in the size of the contracted part of the tree; thus, since the modular decomposition tree of a graph can be constructed in time and space linear in the size of the graph [15,25,34], the processing of the entire modular decomposition tree and consequently the number of its spanning trees takes time and space linear in the size of the input graph. Such classes are the classes of treecographs, (q, q − 4)-graphs for fixed q, and P 4 -tidy graphs, along with their numerous subclasses, such as, the cographs, the P 4 -reducible, the extended P 4 -reducible, the P 4 -sparse, the P 4 -lite, the P 4 -extendible, and the extended P 4 -sparse graphs.…”