In the case of TextRank, the similarity between two sentences is calculated as the number of words they have in common normalized by sentence length.
to LexRank, TextRank recursively changes the weights of the sentences incorporating in this manner how all the sentences in the graph relate to each other.