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.
In the current implementation, dependency cycles will be tolerated if they can't be reached from the outputs or are broken by the inputs. However, this behaviour is an implementation detail that should not be relied upon.
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. In the current implementation, dependency cycles will be tolerated if they can't be reached from the outputs or are broken by the inputs. However, this behaviour is an implementation detail that should not be relied upon.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close