Graph decompositions for demographic loop analysis