diff --git a/scribblings/utils.scrbl b/scribblings/utils.scrbl index 692b755..75b39bc 100644 --- a/scribblings/utils.scrbl +++ b/scribblings/utils.scrbl @@ -246,6 +246,18 @@ those symbols. (list-sets->list-strings (list (set 'x 'y) (set 'z) (set) (set 't))) ]} +@section{Additional graph utilities} +@defproc[(dotit [graph Graph]) Void]{ + +Typeset the graph via graphviz and display it. + +@examples[#:eval utils-evaluator +(require typed/graph) +(dotit (weighted-graph/directed '((1 a b) (2 b c)))) +]} + +@section{Pretty printing} + @defproc[(pretty-print-set (s (Setof Any))) String]{ Pretty prints a set by listing its elements in alphabetic order. @@ -265,18 +277,6 @@ a state graph. (pretty-print-set-sets (set (set 'a 'b) (set 'c))) ]} -@section{Additional graph utilities} -@defproc[(dotit [graph Graph]) Void]{ - -Typeset the graph via graphviz and display it. - -@examples[#:eval utils-evaluator -(require typed/graph) -(dotit (weighted-graph/directed '((1 a b) (2 b c)))) -]} - -@section{Pretty printing} - @section{Additional list and hash map utilities} @section{Functions and procedures}