X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=matita%2FlablGraphviz.ml;h=0084c9204d64e3a35cd2c57038eb27c2c9f2b5be;hb=0aed1ab55fda7e09f29db13bc16330c7e9e8d489;hp=ac5cd7537577fa31f2d9b28bb0c2ec6f5cd5f676;hpb=6f2481585178340b6f174f2db3323f4eb52282ef;p=helm.git diff --git a/matita/lablGraphviz.ml b/matita/lablGraphviz.ml index ac5cd7537..0084c9204 100644 --- a/matita/lablGraphviz.ml +++ b/matita/lablGraphviz.ml @@ -118,39 +118,3 @@ let gTwopi = factory "twopi" let gCirco = factory "circo" let gFdp = factory "fdp" -module Pp = - struct - - module type GraphvizFormatter = - sig - val header: ?name:string -> Format.formatter -> unit - val node: string -> ?attrs:(attribute list) -> Format.formatter -> unit - val edge: - string -> string -> ?attrs:(attribute list) -> Format.formatter -> - unit - val raw: string -> Format.formatter -> unit - val trailer: Format.formatter -> unit - end - - open Format - - module Dot = - struct - let attribute fmt (k, v) = fprintf fmt "@[%s=@,\"%s\",@]" k v - let attributes attrs fmt = List.iter (attribute fmt) attrs - - let header ?(name = "g") fmt = fprintf fmt "@[digraph %s {@," name - let node name ?(attrs = []) fmt = - fprintf fmt "@[%s@ [" name; - attributes attrs fmt; - fprintf fmt "];@]@," - let edge name1 name2 ?(attrs = []) fmt = - fprintf fmt "@[%s ->@ %s@ [" name1 name2; - attributes attrs fmt; - fprintf fmt "];@]@," - let raw s fmt = pp_print_string fmt s - let trailer fmt = fprintf fmt "@,}@]%!" - end - - end -