Module CCKTree.Dot
type attribute
=[
|
`Color of string
|
`Shape of string
|
`Weight of int
|
`Style of string
|
`Label of string
|
`Id of string
|
`Other of string * string
]
Dot attributes for nodes
type graph
= string * attribute list t list
A dot graph is a name, plus a list of trees labelled with attributes
val mk_id : ('a, Buffer.t, unit, attribute) Pervasives.format4 -> 'a
Using a formatter string, build an ID.
val mk_label : ('a, Buffer.t, unit, attribute) Pervasives.format4 -> 'a
Using a formatter string, build a label.
val make : name:string -> attribute list t list -> graph
val singleton : name:string -> attribute list t -> graph
val pp_single : string -> attribute list t printer
val pp : graph printer
Printer to DOT with indentation, etc.
- since
- 0.6.1
val print_to_file : string -> graph -> unit
print_to_file filename g
printsg
into a file whose name isfilename
.- since
- 0.6.1