Corrected a bug in the nodes method for directed-edge-class.

Pascal J. Bourguignon [2015-07-16 05:16]
Corrected a bug in the nodes method for directed-edge-class.
Filename
common-lisp/cesarum/graph.lisp
diff --git a/common-lisp/cesarum/graph.lisp b/common-lisp/cesarum/graph.lisp
index e077b4c..f1a51f6 100644
--- a/common-lisp/cesarum/graph.lisp
+++ b/common-lisp/cesarum/graph.lisp
@@ -886,7 +886,7 @@ RETURN: A COPY of this edge (only with same NODES).
 RETURN: A list containing the two NODES of the edge in no particular order.
 NOTE:   Use the accessor methods `from' and `to' to get the wanted node.
 "
-  (list (from self) (to self)))
+  (cons (from self) (to self)))


 ;; (defmethod identicalTo ((self DIRECTED-EDGE-CLASS) (other PjBElement))
ViewGit