type t
type vertex = V.t
type edge = E.t
val is_directed : boolval create : ?size:int -> unit -> tval clear : t -> unitval copy : t -> tval add_vertex : t -> V.t -> unitval remove_vertex : t -> V.t -> unitval add_edge : t -> V.t -> V.t -> unitval add_edge_e : t -> E.t -> unitval remove_edge : t -> V.t -> V.t -> unitval remove_edge_e : t -> E.t -> unit
module Mark : sig ... endval is_empty : t -> boolval nb_vertex : t -> intval nb_edges : t -> intval out_degree : t -> V.t -> intval in_degree : t -> V.t -> intval mem_vertex : t -> V.t -> boolval mem_edge : t -> V.t -> V.t -> boolval mem_edge_e : t -> E.t -> boolval find_edge : t -> V.t -> V.t -> E.tval find_all_edges : t -> V.t -> V.t -> E.t listval succ : t -> V.t -> V.t listval pred : t -> V.t -> V.t listval succ_e : t -> V.t -> E.t listval pred_e : t -> V.t -> E.t listval iter_vertex : (V.t -> unit) -> t -> unitval iter_edges : (V.t -> V.t -> unit) -> t -> unitval fold_vertex : (V.t -> 'a -> 'a) -> t -> 'a -> 'aval fold_edges : (V.t -> V.t -> 'a -> 'a) -> t -> 'a -> 'aval map_vertex : (V.t -> V.t) -> t -> tval iter_edges_e : (E.t -> unit) -> t -> unitval fold_edges_e : (E.t -> 'a -> 'a) -> t -> 'a -> 'aval iter_succ : (V.t -> unit) -> t -> V.t -> unitval iter_pred : (V.t -> unit) -> t -> V.t -> unitval fold_succ : (V.t -> 'a -> 'a) -> t -> V.t -> 'a -> 'aval fold_pred : (V.t -> 'a -> 'a) -> t -> V.t -> 'a -> 'aval iter_succ_e : (E.t -> unit) -> t -> V.t -> unitval fold_succ_e : (E.t -> 'a -> 'a) -> t -> V.t -> 'a -> 'aval iter_pred_e : (E.t -> unit) -> t -> V.t -> unitval fold_pred_e : (E.t -> 'a -> 'a) -> t -> V.t -> 'a -> 'aval find_vertex : t -> int -> V.tval transitive_closure : ?reflexive:bool -> t -> tval add_transitive_closure : ?reflexive:bool -> t -> tval transitive_reduction : ?reflexive:bool -> t -> tval replace_by_transitive_reduction : ?reflexive:bool -> t -> tval mirror : t -> tval complement : t -> tval intersect : t -> t -> tval union : t -> t -> t
module Rand : sig ... endval shortest_path : t -> V.t -> V.t -> E.t list * intval ford_fulkerson : t -> V.t -> V.t -> (E.t -> int) * intval goldberg_tarjan : t -> V.t -> V.t -> (E.t -> int) * intval bellman_ford : t -> V.t -> E.t list
val spanningtree : t -> E.t listval dot_output : t -> string -> unitval display_with_gv : t -> unitval parse_gml_file : string -> tval parse_dot_file : string -> tval print_gml : Stdlib.Format.formatter -> t -> unitval print_gml_file : t -> string -> unit