divide graphs to single files