mapEdges
mapEdges is a concept used in graph theory and graph processing to describe a transformation that assigns to every edge in a graph a value from a chosen target set, or that otherwise replaces edge data. It is an edge-centric counterpart to vertex-focused mappings and is often used to derive new graphs or annotate existing ones with computed attributes.
Formally, let G = (V,E) be a graph and let f be a function that associates each edge
Examples include creating a weighted graph by setting w'(e) = f(e) for all e, or generating a labeled
In software libraries, mapEdges is often implemented as a higher-order operation that takes a function parameter