The decomposition of graphs into ladder graphs