comparator property
Returns the comparator used to sort graph vertices.
Implementation
Comparator<T>? get comparator => _comparator;
Sets the comparator used to sort graph vertices.
Implementation
set comparator(Comparator<T>? comparator) {
_comparator = comparator;
_sortedVertices.updateCache();
}