module type GraphvizFormatter =
sig
val header:
+ ?graph_type:string ->
?name:string -> ?graph_attrs:(attribute list) ->
?node_attrs:(attribute list) -> ?edge_attrs:(attribute list) ->
Format.formatter ->
attributes attrs fmt;
fprintf fmt "];@]@,"
- let header ?(name = "g") ?(graph_attrs = []) ?node_attrs ?edge_attrs fmt =
- fprintf fmt "@[<hv2>strict digraph %s {@," name;
+ let header ?(graph_type = "digraph") ?(name = "g") ?(graph_attrs = []) ?node_attrs ?edge_attrs fmt =
+ fprintf fmt "@[<hv2>%s %s {@," graph_type name;
List.iter (fun (k, v) -> fprintf fmt "@[<hv2>%s=@,%s;@]@," k v)
graph_attrs;
(match node_attrs with