code: def write_graph(self, outfile, manifest):
          
          out_graph = _updated_graph(self.graph, manifest)
          nx.write_gpickle(out_graph, outfile)
docs: Write the graph to a gpickle file. Before doing so, serialize and
          include all nodes in their corresponding graph entries.