(self, outfile: str, manifest: Manifest)
Write the graph to a gpickle file. Before doing so, serialize and
        include all nodes in their corresponding graph entries.
Write the graph to a gpickle file. Before doing so, serialize and
        include all nodes in their corresponding graph entries.
Write the graph to a gpickle file . Before doing so serialize and include all nodes in their corresponding graph entries .
def write_graph(self, outfile: str, manifest: Manifest):
        """Write the graph to a gpickle file. Before doing so, serialize and
        include all nodes in their corresponding graph entries.
        """
        out_graph = self.graph.copy()
        for node_id in self.graph:
            data = manifest.expect(node_id).to_dict(omit_none=True)
            out_graph.add_node(node_id, **data)
        nx.write_gpickle(out_graph, outfile)
def write_graph ( self , outfile : str , manifest : Manifest ) : out_graph = self . graph . copy ( ) for node_id in self . graph : data = manifest . expect ( node_id ) . to_dict ( omit_none = True ) out_graph . add_node ( node_id , * * data ) nx . write_gpickle ( out_graph , outfile )