termDegree method

  1. @override
int termDegree(
  1. String term
)
override

The word degree of the term

Implementation

@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;
}