termFrequency method
The word frequency for the term.
Implementation
@override
int termFrequency(String term) {
assert(terms.contains(term), 'The term is not in the keywords.');
final i = terms.indexOf(term);
final row = coOccurrenceGraph[term] as List<int>;
return row[i];
}