1 #+setupfile: ../clean.theme
4 (defmethod cl-dot:graph-object-node ((graph (eql 'example)) (object cons))
5 (make-instance 'cl-dot:node
6 :attributes '(:label "cell \\N"
8 (defmethod cl-dot:graph-object-points-to ((graph (eql 'example)) (object cons))
10 (make-instance 'cl-dot:attributed
12 :attributes '(:weight 3))))
14 (defmethod cl-dot:graph-object-node ((graph (eql 'example)) (object symbol))
15 (make-instance 'cl-dot:node
16 :attributes `(:label ,object
20 :fillcolor "#ccccff")))
21 (let* ((data '(a b c #1=(b z) c d #1#))
22 (dgraph (cl-dot:generate-graph-from-roots 'example (list data)
23 '(:rankdir "LR" :layout "twopi" :labelloc "t"))))
24 (cl-dot:dot-graph dgraph "test-lr.svg" :format #+nil :x11 :svg))
31 (dgraph (cl-dot:generate-graph-from-roots 'example (list data)
33 (cl-dot:print-graph dgraph))