Paths in layered digraphs #
A layered digraph is a digraph equipped with a natural-number layer for each vertex.
Each edge advances exactly one layer. Paths use Mathlib's Quiver.Path, with one arrow
for each adjacent pair, so parallel edges are excluded.
Main results #
LayeredDigraph.Path.existsUnique_vertex: a path visits exactly one vertex in each layer between its endpoints, including the endpoint layers.LayeredDigraph.Path.exists_eq_comp_of_layer: a path splits at any such layer.LayeredDigraph.Path.internalWeight_comp: the weight of a concatenation is the sum of the internal weights of its two pieces and the weight of their common endpoint.
The quiver with one arrow for each adjacent pair.
Directed paths in the underlying quiver of a layered digraph.
Instances For
The number of edges of a path.
The vertices of a path in order, including both endpoints.
Concatenate paths with a common endpoint.
An edge viewed as a length-one path.
The last layer of a path is its first layer plus its length.
A path splits at any layer in its closed endpoint interval.
With at most one edge between the endpoint layers, any two paths coincide.
The vertices strictly between the endpoints, in path order.
On an internal layer, the unique vertex on the path belongs to its internal list.
The internal vertices of a concatenation are those of the first path, the common endpoint, and those of the second path, in that order.
The sum of the weights of the internal vertices.
At an internal split, the common endpoint contributes its weight exactly once.
The vertex visited at a layer, with the source as the default outside the path.
Within the path's layer interval, the lookup returns the unique vertex at that layer.
Sum internal weights in order of layer.