ragtag_utilities/ScaffoldGraph.py
def filter_non_one(self):
        """ Remove edges where the weight is not equal to one. """
        G = nx.Graph()

        for u, v in self.edges:
            if self.graph[u][v]["weight"] == 1:
                # Add the nodes first in case they have data
                G.add_node(u, **self.nodes(data=True)[u])
                G.add_node(v, **self.nodes(data=True)[v])
                G.add_edge(u, v, **self.graph[u][v])

        self.graph = G
 Remove edges where the weight is not equal to one. 
Remove edges where the weight is not equal to one.
Remove edges where the weight is not equal to one .
def filter_non_one(self):
        G = nx.Graph()
        for u, v in self.edges:
            if self.graph[u][v]["weight"] == 1:
                G.add_node(u, **self.nodes(data=True)[u])
                G.add_node(v, **self.nodes(data=True)[v])
                G.add_edge(u, v, **self.graph[u][v])
        self.graph = G
def filter_non_one ( self ) : G = nx . Graph ( ) for u , v in self . edges : if self . graph [ u ] [ v ] [ "weight" ] == 1 : G . add_node ( u , ** self . nodes ( data = True ) [ u ] ) G . add_node ( v , ** self . nodes ( data = True ) [ v ] ) G . add_edge ( u , v , ** self . graph [ u ] [ v ] ) self . graph = G
Remove edges where the weight is not equal to one.
Remove edges where the weight is not equal to one .
""" Remove edges where the weight is not equal to one. """ # Add the nodes first in case they have data
self