TermCoOccurrenceGraph constructor
Unnamed factory constructor hydrates a TermCoOccurrenceGraph from the
keywords
.
Implementation
factory TermCoOccurrenceGraph(Iterable<List<String>> keywords) {
final uniqueTerms = keywords.toUniqueTerms();
final terms = uniqueTerms.toList();
final coOccurrenceGraph = keywords.coOccurenceGraph(terms);
return _TermCoOccurrenceGraphImpl(
coOccurrenceGraph, keywords, terms, uniqueTerms);
}