module P:Persistent implementationfunctor (
Gf
:
Sig.G
) ->
functor (
Gt
:
Sig.P
) ->
functor (
M
:
sig
val vertex :Gt.t -> Gf.V.t -> Gt.V.t * Gt.t
vertex g' v
returns the modified new graph and its corresponding vertex in this graph.
val edge :Gt.t -> Gt.V.t -> Gt.V.t -> Gt.t
edge g' v1' v2'
returns the modified new graph given the images of two vertices that had an edge in the original graph
end
) ->
sig
..end
Parameters: |
|
val copy : Gf.t -> Gt.t
copy g
Copy the graph g
using M.vertex
and M.edge