initial code for finding CEs on smaller graphs starting from a bigger graph