split graphs according to autogrouping