Now constructs a graph of the search results.