Module Graph__Gmap.Edge
Provide a mapping function from a mapping of edges.
Parameters
Signature
val map : (G_Src.E.t -> G_Dst.edge) -> G_Src.t -> G_Dst.t
map f g
appliesf
to each edge ofg
and so builds a new graph based ong
val filter_map : (G_Src.E.t -> G_Dst.edge option) -> G_Src.t -> G_Dst.t
filter_map f g
appliesf
to each edge ofg
and so builds a new graph based ong
; ifNone
is returned byf
the edge is omitted in the new graph.