utils.scrbl: Improve the doc for dotit.

This commit is contained in:
Sergiu Ivanov 2022-02-06 23:50:40 +01:00
parent e1cf64a822
commit 45a60cd122

View file

@ -270,14 +270,13 @@ a state graph.
@section{Additional graph utilities}
@defproc[(dotit [graph Graph]) Void]{
Typeset the graph via graphviz and display it.
Typesets the graph via @racket[graphviz] and @racket[display]s it.
@examples[#:eval utils-evaluator
(require typed/graph)
(dotit (weighted-graph/directed '((1 a b) (2 b c))))
]}
@defproc[(update-vertices/unweighted [graph Graph] [func (-> Any Any)]) Graph]{
Applies a transformation to every vertex in the unweighted graph and returns