1. A computer-implemented method for implementing a workflow, wherein the method comprises: merging a workflow to create a virtual graph, wherein the workflow comprises two or more directed acyclic graphs (DAGs); mapping each of one or more nodes of the virtual graph to one or more physical nodes; and using a message passing scheme to implement a computation via the one or more physical nodes.