Add examples for pretty-print-state-graph and pretty-print-state-graph/boolean.

This commit is contained in:
Sergiu Ivanov 2022-09-22 00:56:07 +02:00
parent 990abee3db
commit d00056affb

View file

@ -515,6 +515,14 @@ pretty-printed with @racket[pprinter] and the edges with
Calls @racket[pretty-print-state-graph-with] with @racket[pretty-print-state].
@ex[
(let* ([n (forms->boolean-network (hash 'a '(and a b)
'b '(not b)))]
[syn-dynamics (make-syn-dynamics n)])
(dotit (pretty-print-state-graph
((inst build-full-state-graph Boolean) syn-dynamics))))
]
}
@defproc[(ppsg [gr Graph]) Graph]{
@ -527,6 +535,14 @@ A shortcut for @racket[pretty-print-state-graph].
Calls @racket[pretty-print-state-graph-with] with @racket[pretty-print-state/boolean].
@ex[
(let* ([n (forms->boolean-network (hash 'a '(and a b)
'b '(not b)))]
[syn-dynamics (make-syn-dynamics n)])
(dotit (pretty-print-state-graph/boolean
((inst build-full-state-graph Boolean) syn-dynamics))))
]
}
@defproc[(ppsgb [gr Graph]) Graph]{