Quadtree data structure that searches quadrants in a graph