Path<V, E>.fromEdges constructor
Constructs a path from an iterable of Edge instances.
Implementation
Path.fromEdges(Iterable<Edge<V, E>> edges)
: this._(
vertices: [edges.first.source, ...edges.map((edge) => edge.target)],
values: edges.map((edge) => edge.value),
);