Generalized generalized Petersen graph generator