edges property

Iterable<WeightedEdge<E>> edges

Each edge in the collection.

Implementation

Iterable<WeightedEdge<E>> get edges {
  return roots.expand((vertex) {
    return successors(vertex).map((pair) {
      return WeightedEdge(vertex, pair.$1, pair.$2);
    });
  });
}