Up – visualization » Visualization » Make_ocamlgraphModule Visualization.Make_ocamlgraph Visualizes graph structures. Namely, it assumes that a node can be presented in a pretty json form. Using the json form, it interprets the json form into dot form using the function, to_dot
Parameters Signatureinclude module type of struct include G end type t = Graph .Persistent.Digraph.ConcreteBidirectional(Node ).t val out_degree : t -> vertex -> intval mem_vertex : t -> vertex -> boolval mem_edge_e : t -> edge -> boolval iter_vertex : ( vertex -> unit ) -> t -> unitval fold_vertex : ( vertex -> 'a -> 'a ) -> t -> 'a -> 'a val fold_edges : ( vertex -> vertex -> 'a -> 'a ) -> t -> 'a -> 'a val iter_edges_e : ( edge -> unit ) -> t -> unitval fold_edges_e : ( edge -> 'a -> 'a ) -> t -> 'a -> 'a 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 -> unitval fold_succ_e : ( edge -> 'a -> 'a ) -> t -> vertex -> 'a -> 'a val iter_pred_e : ( edge -> unit ) -> t -> vertex -> unitval fold_pred_e : ( edge -> 'a -> 'a ) -> t -> vertex -> 'a -> 'a val add_edge_e : t -> edge -> t val remove_edge_e : t -> edge -> t val fprint_graph :
Stdlib .Format.formatter ->
Graph .Persistent.Digraph.ConcreteBidirectional(Node ).t ->
unitval output_graph :
Stdlib .out_channel ->
Graph .Persistent.Digraph.ConcreteBidirectional(Node ).t ->
unit