package ocamldot

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val version : string
type graph_kind =
  1. | Graph
  2. | Digraph
type id =
  1. | Simple_id of string
  2. | Html_id of string
  3. | Double_quoted_id of string
type attr = id * id option
type compass_pt =
  1. | N
  2. | NE
  3. | E
  4. | SE
  5. | S
  6. | SW
  7. | W
  8. | NW
type port = id * compass_pt option
type node_id = id * port option
type edge_stmt_point =
  1. | Edge_node_id of node_id
  2. | Edge_subgraph of subgraph
and edge_stmt = edge_stmt_point * edge_stmt_point list * attr list
and attr_stmt =
  1. | Attr_graph of attr list
  2. | Attr_node of attr list
  3. | Attr_edge of attr list
and stmt =
  1. | Stmt_node of node_id * attr list
  2. | Stmt_equals of id * id
  3. | Stmt_edge of edge_stmt
  4. | Stmt_attr of attr_stmt
  5. | Stmt_subgraph of subgraph
and subgraph = {
  1. mutable sub_id : id option;
  2. mutable sub_stmt_list : stmt list;
}
and graph = {
  1. mutable strict : bool;
  2. mutable kind : graph_kind;
  3. mutable id : id option;
  4. mutable stmt_list : stmt list;
}
exception Parse_error of int * int
val parse_file : string -> graph
val parse_string : string -> graph
val string_of_graph_kind : graph_kind -> string
val string_of_id : id -> string
val string_of_attr : (id * id option) -> string
val string_of_attr_list : (id * id option) list -> string
val string_of_compass_pt : compass_pt -> string
val string_of_node_id : (id * (id * compass_pt option) option) -> string
val string_of_edge_stmt_point : graph_kind -> edge_stmt_point -> string
val string_of_edge_stmt : graph_kind -> edge_stmt -> string
val string_of_attr_stmt : attr_stmt -> string
val string_of_stmt : graph_kind -> stmt -> string
val string_of_stmt_list : graph_kind -> stmt list -> string
val string_of_subgraph : graph_kind -> subgraph -> string
val string_of_graph : graph -> string
val print : out_channel -> graph -> unit
val print_file : string -> graph -> unit
val attr_value : id -> attr list -> id option
val node_id : ?port:id -> ?comp:compass_pt -> id -> node_id
val simple_node_id : string -> node_id
val dblq_node_id : string -> node_id
val html_node_id : string -> node_id
OCaml

Innovation. Community. Security.