Mapping walks between graphs #
Functions that map walks between different graphs.
Main definitions #
SimpleGraph.Walk.map: The map on walks induced by a graph homomorphismSimpleGraph.Walk.mapLe: Map a walk to a supergraphSimpleGraph.Walk.transfer: Map a walk to another graph that contains its edgesSimpleGraph.Walk.induce: Map a walk that's fully contained in a set of vertices to the subgraph induced by that setSimpleGraph.Walk.toDeleteEdges: Map a walk that avoids a set of edges to the subgraph with those edges deletedSimpleGraph.Walk.toDeleteEdge: Map a walk that avoids an edge to the subgraph with that edge deleted
Tags #
walks
Mapping walks #
Given a graph homomorphism, map walks to walks.
Equations
Instances For
Unlike categories, for graphs vertex equality is an important notion, so needing to be able to work with equality of graph homomorphisms is a necessary evil.
The specialization of SimpleGraph.Walk.map for mapping walks to supergraphs.
Equations
Instances For
Transferring between graphs #
The walk p transferred to lie in H, given that H contains its edges.
Equations
- SimpleGraph.Walk.nil.transfer H h_2 = SimpleGraph.Walk.nil
- (SimpleGraph.Walk.cons h_2 p_2).transfer H h_3 = SimpleGraph.Walk.cons ⋯ (p_2.transfer H ⋯)
Instances For
Alias of SimpleGraph.Walk.transfer_eq_mapLe.
Inducing a walk #
A walk in G which is fully contained in a set s of vertices lifts to a walk of G[s].
Equations
Instances For
Deleting edges #
Given a walk that avoids a set of edges, produce a walk in the graph with those edges deleted.
Equations
- SimpleGraph.Walk.toDeleteEdges s p hp = p.transfer (G.deleteEdges s) ⋯
Instances For
Given a walk that avoids an edge, create a walk in the subgraph with that edge deleted.
This is an abbreviation for SimpleGraph.Walk.toDeleteEdges.
Equations
Instances For
Alias of SimpleGraph.Walk.mapLe_toDeleteEdges_eq.