- let header ?(name = "g") ?(graph_attrs = []) ?node_attrs ?edge_attrs fmt =
- fprintf fmt "@[<hv2>strict digraph %s {@," name;
+ let edge ~quote name1 name2 ?(attrs = []) fmt =
+ fprintf fmt "@[<hov2>%s ->@ %s@ ["
+ (quote_string quote name1) (quote_string quote name2);
+ attributes attrs fmt;
+ fprintf fmt "];@]@,"
+
+ let header ?(graph_type = "digraph") ?(name = "g") ?(graph_attrs = []) ?node_attrs ?edge_attrs fmt =
+ fprintf fmt "@[<hv2>%s %s {@," graph_type name;