def write_graphml(self, path): """ Serialize the graph as .graphml. Args: path (str) """ nx.write_graphml(self.graph, path)