package containers-data

  1. Overview
  2. Docs
A set of advanced datatypes for containers

Install

Dune Dependency

Authors

Maintainers

Sources

containers-3.13.1.tbz
sha256=eb9b26eb2c3cf04fc5157d256eb49c43552ccb5c59c568772d70315db9669784
sha512=7f4cf5112c8047fd789c04129745dbe9783aa94390e8983f86408053b0af637e2a9cfce1559ce466b1b6ff7c01fd52d8685f5db1d1c0dda2c0aa138f90606a50

doc/containers-data/CCKTree/Dot/index.html

Module CCKTree.DotSource

Sourcetype attribute = [
  1. | `Color of string
  2. | `Shape of string
  3. | `Weight of int
  4. | `Style of string
  5. | `Label of string
  6. | `Id of string
    (*

    Unique ID in the graph. Allows sharing.

    *)
  7. | `Other of string * string
]

Dot attributes for nodes

Sourcetype graph = string * attribute list t list

A dot graph is a name, plus a list of trees labelled with attributes

Sourceval mk_id : ('a, Buffer.t, unit, attribute) format4 -> 'a

Using a formatter string, build an ID.

Sourceval mk_label : ('a, Buffer.t, unit, attribute) format4 -> 'a

Using a formatter string, build a label.

Sourceval make : name:string -> attribute list t list -> graph
Sourceval singleton : name:string -> attribute list t -> graph
Sourceval pp_single : string -> attribute list t printer

Printer to DOT with indentation, etc.

  • since 0.6.1
Sourceval print_to_file : string -> graph -> unit

print_to_file filename g prints g into a file whose name is filename.

  • since 0.6.1
Sourceval to_file : ?name:string -> string -> attribute list t list -> unit

to_file filename trees makes a graph out of the trees, opens the file filename and prints the graph into the file.

  • parameter name

    name of the graph.

  • since 0.6.1
OCaml

Innovation. Community. Security.