(iterate-elements (vertex-edges vertex)
(lambda (edge)
(when (or (undirected-edge-p edge)
- (eq vertex (target-vertex edge)))
+ (eq vertex (source-vertex edge)))
(funcall fn edge)))))
;;; ---------------------------------------------------------------------------
(iterate-elements (vertex-edges vertex)
(lambda (edge)
(when (or (undirected-edge-p edge)
- (eq vertex (source-vertex edge)))
+ (eq vertex (target-vertex edge)))
(funcall fn edge)))))
;;; ---------------------------------------------------------------------------