Graph decomposition (master thesis)