data property

Map<T, Set<T>> data

Returns a copy of the graph edges as a map of type Map<T, Set<T>>.

Implementation

Map<T, Set<T>> get data {
  final data = <T, Set<T>>{};
  for (final vertex in sortedVertices) {
    data[vertex] = _edges[vertex]!;
  }
  return data;
}