various graph decomposition with the spark framework