ragtag_utilities/ScaffoldGraph.py
def merge(self):
        """ Combine edges connecting the same nodes. Return a new SG graph. """
        G = ScaffoldGraph(self.components_fasta_fname)

        # TODO implement an add_nodes_from wrapper so direct access is unnecessary
        G.graph.add_nodes_from(self.nodes(data=True))
        for u, v, c in self.graph.edges:
            edge_data_list = [self.graph[u][v][i] for i in self.graph[u][v]]
            G.add_edge(u, v, **self._merge_edge_dicts(*edge_data_list))

        return G
 Combine edges connecting the same nodes. Return a new SG graph. 
Combine edges connecting the same nodes. Return a new SG graph.
Combine edges connecting the same nodes . Return a new SG graph .
def merge(self):
        G = ScaffoldGraph(self.components_fasta_fname)
        G.graph.add_nodes_from(self.nodes(data=True))
        for u, v, c in self.graph.edges:
            edge_data_list = [self.graph[u][v][i] for i in self.graph[u][v]]
            G.add_edge(u, v, **self._merge_edge_dicts(*edge_data_list))
        return G
def merge ( self ) : G = ScaffoldGraph ( self . components_fasta_fname ) G . graph . add_nodes_from ( self . nodes ( data = True ) ) for u , v , c in self . graph . edges : edge_data_list = [ self . graph [ u ] [ v ] [ i ] for i in self . graph [ u ] [ v ] ] G . add_edge ( u , v , ** self . _merge_edge_dicts ( * edge_data_list ) ) return G
Combine edges connecting the same nodes.
Combine edges connecting the same nodes .
""" Combine edges connecting the same nodes. Return a new SG graph. """ # TODO implement an add_nodes_from wrapper so direct access is unnecessary
self