Decomposition of graphs intp trees, forests, and regular subgraphs