Skip to content

ndi.database.fun.findallantecedents

  FINDALLANTECEDENTS - find documents that have the provided documents as dependencies

  [D] = ndi.database.fun.findallantecedents(E, VISITED, DOC1, DOC2, ...)

  Searches the database of session or dataset E and returns all documents for which
  DOC1, DOC2, etc have a dependency. That is, this function crawls up the list of
  'depends_on' fields to find all documents that DOC1, DOC2 etc. depend on.
  If any DOCS do not need to be searched, provide them in VISITED.  Otherwise, provide
  empty for VISITED.

  D is always a cell array of NDI_DOCUMENTS (perhaps empty, {}).

  See also: ndi.database.fun.findalldependencies()