functor (G : Graph.Graphviz.GraphWithDotAttrs->
  sig
    module HV :
      sig
        type key = G.V.t
        type 'a t
        val create : int -> 'a t
        val clear : 'a t -> unit
        val reset : 'a t -> unit
        val copy : 'a t -> 'a t
        val add : 'a t -> key -> '-> unit
        val remove : 'a t -> key -> unit
        val find : 'a t -> key -> 'a
        val find_all : 'a t -> key -> 'a list
        val replace : 'a t -> key -> '-> unit
        val mem : 'a t -> key -> bool
        val iter : (key -> '-> unit) -> 'a t -> unit
        val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
        val length : 'a t -> int
        val stats : 'a t -> Hashtbl.statistics
      end
    module HE :
      sig
        type key = G.E.t
        type 'a t
        val create : int -> 'a t
        val clear : 'a t -> unit
        val reset : 'a t -> unit
        val copy : 'a t -> 'a t
        val add : 'a t -> key -> '-> unit
        val remove : 'a t -> key -> unit
        val find : 'a t -> key -> 'a
        val find_all : 'a t -> key -> 'a list
        val replace : 'a t -> key -> '-> unit
        val mem : 'a t -> key -> bool
        val iter : (key -> '-> unit) -> 'a t -> unit
        val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
        val length : 'a t -> int
        val stats : 'a t -> Hashtbl.statistics
      end
    type graph_layout = {
      vertex_layouts : XDot.node_layout XDot.Make.HV.t;
      edge_layouts : XDot.edge_layout XDot.Make.HE.t;
      cluster_layouts : (string, XDot.cluster_layout) Hashtbl.t;
      bbox : XDot.bounding_box;
    }
    exception DotError of string
    val layout_of_xdot : xdot_file:string -> G.t -> XDot.Make.graph_layout
    val layout_of_dot :
      ?cmd:string -> dot_file:string -> G.t -> XDot.Make.graph_layout
  end