edges property

Iterable<Edge<E>> edges

Each edge in the collection.

Implementation

Iterable<Edge<E>> get edges {
  return roots.expand((vertex) {
    return successors(vertex).map((target) => Edge(vertex, target));
  });
}