Hi,<br>thanx for programming this huge package. <br>I`m working on a scientific project involving optimization of huge sets of interconnected chemical reactors.<br>2 questions in order to get the wheels turning for a newbie:<br>
<br>tried running the code:<br><br>(let ((g (make-container 'graph-container))) <br> (loop for v in '(a b c d e) do<br> (add-vertex g v))<br> (loop for (v1 . v2) in '((a . b) (a . c) (b . d) (c . e)) do<br>
(add-edge-between-vertexes g v1 v2))<br> g) <br><br>and got this:<br><br>#1=#:|616 623 (DEFMETHOD FIND-VERTEX (# # &OPTIONAL ...) ...)-62-1-1|: symbol IT has no value<br> [Condition of type SYSTEM::SIMPLE-UNBOUND-VARIABLE]<br>
<br>found line 618 in graph.lisp:<br>(defmethod find-vertex ((graph basic-graph) (value t)<br> &optional (error-if-not-found? t))<br> (aif (find-item (graph-vertexes graph) (funcall (vertex-key graph) value))<br>
it<br> (when error-if-not-found?<br> (error 'graph-vertex-not-found-error :vertex value :graph graph))))<br><br clear="all"><br>and I have no idea what the symbol "it" means, or where should I look for it.<br>
<br>Second question is about a use-case<br><br>can I make a directed graph with the following structure and how?<br><br>A D<br>B D<br>C D<br>D E<br>G E<br>E F<br>E J<br>J H<br><br>Is the cl-graph package only for exporting the graphs to dot format, or can you do more stuff with the graphs? Where can I find more tutorials? (the one on uncommon wiki was not suitable for my simple use case). Can you use a graph as a data-structure ? Can you traverse and search the directed graph? A simple (even uncommented) tutorial would be much appreciated. <br>
<br>Thanks a lot, happy coding<br>-- <br>Andrej Moča»