ragtag_utilities/ScaffoldGraph.py
def write_gml(self, f):
        """
        Write the graph in GML format.
        :param f: Write the graph to this file handle.
        """
        G = self.graph.copy()

        # networkx doesn't like writing non-string attributes to GML
        for u, v in G.edges:
            for key in list(G[u][v].keys()):
                G[u][v][key] = str(G[u][v][key])
        nx.readwrite.gml.write_gml(G, f)

        Write the graph in GML format.
        :param f: Write the graph to this file handle.
        
Write the graph in GML format.
Write the graph in GML format .
def write_gml(self, f):
        G = self.graph.copy()
        for u, v in G.edges:
            for key in list(G[u][v].keys()):
                G[u][v][key] = str(G[u][v][key])
        nx.readwrite.gml.write_gml(G, f)
def write_gml ( self , f ) : G = self . graph . copy ( ) for u , v in G . edges : for key in list ( G [ u ] [ v ] . keys ( ) ) : G [ u ] [ v ] [ key ] = str ( G [ u ] [ v ] [ key ] ) nx . readwrite . gml . write_gml ( G , f )
Write the graph in GML format.
Write the graph in GML format .
"""
        Write the graph in GML format.
        :param f: Write the graph to this file handle.
        """ # networkx doesn't like writing non-string attributes to GML
self
f
Write the graph to this file handle.
Write the graph to this file handle .