list-dependents [Function]


The list-dependents function lists all concepts whose definitions directly or indirectly reference a given concept.


list-dependents concept &key all-p


The concept argument is the concept or relation from which a chain of dependencies is to be computed.

If the all-p argument is t, then dependencies are followed through implications and defaults, as well as through definitions.


The list-dependents function returns a list of the concepts and relations which directly or indirectly depend on concept.


(defconcept A) 
(defconcept B :is-primitive A)  
(defconcept C :is (:all r B)) 
(defconcept D :defaults (:at-least 1 r)) 
(defrelation r :range A) 
(list-dependents (fc A)) ==> (|C|C |C|B) 
(list-dependents (fc A) :all-p t) ==> (|R|R |C|D |C|C |C|B)

See Also

Last modified: Jun 1 1995