build graph prog adaptation for big graphs