21. A computer program product, encoded on a computer-readable medium, operable to cause a data processing apparatus to perform operations comprising: receiving a plurality of documents, the plurality of documents having an initial order; identifying local term relationships between terms in the plurality of documents, each local term relationship being a relationship between a pair of terms in a respective document, wherein identifying local term relationships between terms in the documents comprises generating, for each of the documents in the plurality of documents, a local term relationships graph, the local term relationships graph representing the local term relationships in the respective document; determining relationships among the documents in the plurality of documents based on the local term relationships and on the initial order of the documents, wherein determining relationships between the documents based on the local term relationships and the initial order of the documents within the plurality of documents comprises: generating a global term relationships graph based on the local term relationships graphs; and generating a document relationships graph based on the global term relationships graph; and determining a respective score for each document in the plurality of documents based on the document relationships.
22. The computer program product of claim 21 , further comprising: determining a score-based order of the documents based on the scores; and presenting the documents in the score-based order.