code: def submit_jobs(view, G, jobs):
      """Submit jobs via client where G describes the time dependencies."""
      results = {}
      for node in nx.topological_sort(G):
          with view.temp_flags(
              after=[results[n] for n in G.predecessors(node)]
          ):
              results[node] = view.apply(jobs[node])
      return results
  
file_path: ipyparallel/docs/source/examples/dagdeps.py
imports: from random import randint
  import networkx
  import ipyparallel
label_desc: Use image node_id 5 for calling a global function with example usage: submit_jobs(view, G, jobs) and returns: results