X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Fextlib%2FgraphvizPp.ml;h=82fa9807de15a786b8bd7e338ca82af3348976e5;hb=1b1a0b78ea59c7f0fe2bf7ffda4a5cda260add35;hp=4804699e0a7ef048dae9851641411e7e768be6e5;hpb=0ece452577dc3d9e593c862c0531367aa6d8840a;p=helm.git diff --git a/components/extlib/graphvizPp.ml b/components/extlib/graphvizPp.ml index 4804699e0..82fa9807d 100644 --- a/components/extlib/graphvizPp.ml +++ b/components/extlib/graphvizPp.ml @@ -30,6 +30,7 @@ type attribute = string * string (* pair *) 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 -> @@ -55,8 +56,8 @@ module Dot = attributes attrs fmt; fprintf fmt "];@]@," - let header ?(name = "g") ?(graph_attrs = []) ?node_attrs ?edge_attrs fmt = - fprintf fmt "@[strict digraph %s {@," name; + let header ?(graph_type = "digraph") ?(name = "g") ?(graph_attrs = []) ?node_attrs ?edge_attrs fmt = + fprintf fmt "@[%s %s {@," graph_type name; List.iter (fun (k, v) -> fprintf fmt "@[%s=@,%s;@]@," k v) graph_attrs; (match node_attrs with