Reference implementation for executing mapdag Graphs - a portable interpreter.
Reference implementation for executing mapdag Graphs - a portable interpreter.
(compute graph inputs-map output-keys)
Executes a mapdag Graph on the supplied inputs to return the required outputs.
Given:
graph
: a mapdag Graphinputs map
: a map from input keys to input valuesoutput-keys
: a sequence of input or Step names (this sequence may be empty or nil)returns a map from the output keys to their computed values.
Only the necessary intermediary computations will be performed. Missing inputs and dependency cycles will be tolerated, but only if they can't be reached from given output keys.
Executes a mapdag Graph on the supplied inputs to return the required outputs. Given: - `graph`: a mapdag Graph - `inputs map`: a map from input keys to input values - `output-keys`: a sequence of input or Step names (this sequence may be empty or nil) returns a map from the output keys to their computed values. Only the necessary intermediary computations will be performed. Missing inputs and dependency cycles will be tolerated, but only if they can't be reached from given output keys.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close