3 :ID: c5f4f25c-071b-4a2d-85bc-08676eacce5d 6 (defmethod cl-dot:graph-object-node ((graph (eql 'example)) (object cons))
7 (make-instance 'cl-dot:node
8 :attributes '(:label "cell \\N"
10 (defmethod cl-dot:graph-object-points-to ((graph (eql 'example)) (object cons))
12 (make-instance 'cl-dot:attributed
14 :attributes '(:weight 3))))
16 (defmethod cl-dot:graph-object-node ((graph (eql 'example)) (object symbol))
17 (make-instance 'cl-dot:node
18 :attributes `(:label ,object
22 :fillcolor "#ccccff")))
23 (let* ((data '(a b c #1=(b z) c d #1#))
24 (dgraph (cl-dot:generate-graph-from-roots 'example (list data)
25 '(:rankdir "LR" :layout "twopi" :labelloc "t"))))
26 (cl-dot:dot-graph dgraph "test-lr.svg" :format #+nil :x11 :svg))
33 (dgraph (cl-dot:generate-graph-from-roots 'example (list data)
35 (cl-dot:print-graph dgraph))