REF make name less confusing

This commit is contained in:
Nathan Dwarshuis 2022-03-25 23:33:55 -04:00
parent 1516ad0fbc
commit 35a29ad1b4
2 changed files with 6 additions and 7 deletions

View File

@ -379,14 +379,13 @@ ZS."
(!cdr to-insert*))
(list adjlist (dag--prune-broken-edges broken-ht))))
(defun dag-alist-to-dag (parent-adjlist)
(defun dag-plist-to-dag (parent-adjlist)
"Convert PARENT-ADJLIST to a DAG.
PARENT-ADJLIST is an alist where each member represents a
node in which the car is a identifying the node and the cdr is a
list of other keys representing edges to the parents of the car.
The set of all car keys must be equivalent to the set of all cdr
keys.
PARENT-ADJLIST is a list of plists where each member represents a
node in which the :id is the node ID, :parents are the ID's of
the parents of the ID in :id, and :node-meta is arbitrary
metadata associated with the node.
Return a DAG object."
(-let (((a b) (dag--alist-to-ht parent-adjlist)))

View File

@ -2060,7 +2060,7 @@ removed from, added to, or edited within the DAG respectively."
(defun org-x-dag-update-dag (to-insert to-remove)
(let* ((dag (org-x-dag->dag))
(dag* (if (dag-is-empty-p dag) (dag-alist-to-dag to-insert)
(dag* (if (dag-is-empty-p dag) (dag-plist-to-dag to-insert)
(dag-edit-nodes to-remove to-insert dag))))
(plist-put org-x-dag :dag dag*)))