`sig
exception DotError of string
class type ['a, 'b, 'c] abstract_model =
object
method bounding_box : XDot.bounding_box
method dst : 'b -> 'a
method find_edge : 'a -> 'a -> 'b
method get_cluster_layout : 'c -> XDot.cluster_layout
method get_edge_layout : 'b -> XDot.edge_layout
method get_vertex_layout : 'a -> XDot.node_layout
method iter_associated_vertex : ('a -> unit) -> 'a -> unit
method iter_clusters : ('c -> unit) -> unit
method iter_edges : ('a -> 'a -> unit) -> unit
method iter_edges_e : ('b -> unit) -> unit
method iter_pred : ('a -> unit) -> 'a -> unit
method iter_pred_e : ('b -> unit) -> 'a -> unit
method iter_succ : ('a -> unit) -> 'a -> unit
method iter_succ_e : ('b -> unit) -> 'a -> unit
method iter_vertex : ('a -> unit) -> unit
method mem_edge : 'a -> 'a -> bool
method mem_edge_e : 'b -> bool
method mem_vertex : 'a -> bool
method src : 'b -> 'a
end
module Make :
functor (G : Graph.Graphviz.GraphWithDotAttrs) ->
sig
type cluster = string
class model :
XDot.Make(G).graph_layout ->
G.t -> [G.V.t, G.E.t, DGraphModel.Make.cluster] abstract_model
val from_graph :
?cmd:string -> ?tmp_name:string -> G.t -> DGraphModel.Make.model
end
module DotG :
sig
type t
module V :
sig
type t
val compare : t -> t -> int
val hash : t -> int
val equal : t -> t -> bool
type label = XDot.node_layout
val create : label -> t
val label : t -> label
end
type vertex = V.t
module E :
sig
type t
val compare : t -> t -> int
type vertex = vertex
val src : t -> vertex
val dst : t -> vertex
type label = XDot.edge_layout
val create : vertex -> label -> vertex -> t
val label : t -> label
end
type edge = E.t
val is_directed : bool
val is_empty : t -> bool
val nb_vertex : t -> int
val nb_edges : t -> int
val out_degree : t -> vertex -> int
val in_degree : t -> vertex -> int
val mem_vertex : t -> vertex -> bool
val mem_edge : t -> vertex -> vertex -> bool
val mem_edge_e : t -> edge -> bool
val find_edge : t -> vertex -> vertex -> edge
val find_all_edges : t -> vertex -> vertex -> edge list
val succ : t -> vertex -> vertex list
val pred : t -> vertex -> vertex list
val succ_e : t -> vertex -> edge list
val pred_e : t -> vertex -> edge list
val iter_vertex : (vertex -> unit) -> t -> unit
val fold_vertex : (vertex -> 'a -> 'a) -> t -> 'a -> 'a
val iter_edges : (vertex -> vertex -> unit) -> t -> unit
val fold_edges : (vertex -> vertex -> 'a -> 'a) -> t -> 'a -> 'a
val iter_edges_e : (edge -> unit) -> t -> unit
val fold_edges_e : (edge -> 'a -> 'a) -> t -> 'a -> 'a
val map_vertex : (vertex -> vertex) -> t -> t
val iter_succ : (vertex -> unit) -> t -> vertex -> unit
val iter_pred : (vertex -> unit) -> t -> vertex -> unit
val fold_succ : (vertex -> 'a -> 'a) -> t -> vertex -> 'a -> 'a
val fold_pred : (vertex -> 'a -> 'a) -> t -> vertex -> 'a -> 'a
val iter_succ_e : (edge -> unit) -> t -> vertex -> unit
val fold_succ_e : (edge -> 'a -> 'a) -> t -> vertex -> 'a -> 'a
val iter_pred_e : (edge -> unit) -> t -> vertex -> unit
val fold_pred_e : (edge -> 'a -> 'a) -> t -> vertex -> 'a -> 'a
end
type cluster = string
type dotg_model =
(DGraphModel.DotG.vertex, DGraphModel.DotG.edge, DGraphModel.cluster)
DGraphModel.abstract_model
val read_dot : ?cmd:string -> string -> DGraphModel.dotg_model
val read_xdot : string -> DGraphModel.dotg_model
end`