module Choose:functor (G:sigtypettypevertextypeedgeval iter_vertex :(vertex -> unit) -> t -> unitval iter_edges_e :(edge -> unit) -> t -> unitend) ->sig..end
Choose an element in a graph
| Parameters: |
|
val choose_vertex : G.t -> G.vertexchoose_vertex g returns a vertex from the graph.
Invalid_argument if the graph is empty.val choose_edge : G.t -> G.edgechoose_edge g returns an edge from the graph.
Invalid_argument if the graph has no edge.