Function or Not Graph - Search