Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dev/graph.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ something is putting something on the vertexes plist's


(defmethod weight ((edge basic-edge)) (values 1.0))

(defmethod weight ((edge weighted-edge-mixin))
(slot-value edge 'weight))

(defclass* basic-graph ()
((graph-vertexes :unbound ir)
Expand Down Expand Up @@ -643,7 +644,7 @@ something is putting something on the vertexes plist's

(defmethod rootp ((vertex basic-vertex))
;;?? this is inefficient in the same way that (zerop (length <list>)) is...
(zerop (source-edge-count vertex)))
(zerop (target-edge-count vertex)))


(defmethod find-vertex-if ((graph basic-graph) fn &key key)
Expand Down