edges property
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);
});
});
}
Each edge in the collection.
Iterable<WeightedEdge<E>> get edges {
return roots.expand((vertex) {
return successors(vertex).map((pair) {
return WeightedEdge(vertex, pair.$1, pair.$2);
});
});
}