Path<V, E>.fromVertices constructor
Constructs a path from an iterable of vertices and corresponding values.
Implementation
Path.fromVertices(Iterable<V> vertices, {Iterable<E>? values})
: this._(
vertices: vertices,
values: values ?? repeat<E>(null as E, count: vertices.length - 1),
);