The word degree of the term
@override int termDegree(String term) { assert(terms.contains(term), 'The term is not in the keywords.'); final row = coOccurrenceGraph[term] as List<int>; return row.sum; }