compile
Validates the graph and returns an executable CompiledGraph.
Parameters
reducer
merges the states of nodes that ran in the same step and each returned a whole state. Required when two such nodes can run in the same step. Nodes added with a work and an update do not need it.
Throws
listing every problem found in the graph definition.