ragtag_utilities/ScaffoldGraph.py
def remove_heavier_than(self, w):
        """
        Remove edges with weight > w
        :param w: maximum edge weight
        """
        G = nx.DiGraph()
        for u, v in self.edges:
            if self.graph[u][v]["weight"] <= w:
                G.add_edge(u, v, weight=self.graph[u][v]["weight"], alignment=self.graph[u][v]["alignment"])
        self.graph = G

        Remove edges with weight > w
        :param w: maximum edge weight
        
Remove edges with weight > w
Remove edges with weight > w
def remove_heavier_than(self, w):
        G = nx.DiGraph()
        for u, v in self.edges:
            if self.graph[u][v]["weight"] <= w:
                G.add_edge(u, v, weight=self.graph[u][v]["weight"], alignment=self.graph[u][v]["alignment"])
        self.graph = G
def remove_heavier_than ( self , w ) : G = nx . DiGraph ( ) for u , v in self . edges : if self . graph [ u ] [ v ] [ "weight" ] <= w : G . add_edge ( u , v , weight = self . graph [ u ] [ v ] [ "weight" ] , alignment = self . graph [ u ] [ v ] [ "alignment" ] ) self . graph = G
Remove edges with weight > w
Remove edges with weight > w
"""
        Remove edges with weight > w
        :param w: maximum edge weight
        """
self
w
maximum edge weight
maximum edge weight