meeko/setup.py
def walk_recursive(self, idx, collected=None, exclude=None):
        """ walk molecular graph and return subgraphs that are bond-connected"""
        if collected is None:
            collected = []
        if exclude is None:
            exclude = []
        for neigh in self.get_neigh(idx):
            if neigh in exclude:
                continue
            collected.append(neigh)
            exclude.append(neigh)
            self.walk_recursive(neigh, collected, exclude)
        return collected
 walk molecular graph and return subgraphs that are bond-connected
walk molecular graph and return subgraphs that are bond-connected
walk molecular graph and return subgraphs that are bond - connected
def walk_recursive(self, idx, collected=None, exclude=None):
        if collected is None:
            collected = []
        if exclude is None:
            exclude = []
        for neigh in self.get_neigh(idx):
            if neigh in exclude:
                continue
            collected.append(neigh)
            exclude.append(neigh)
            self.walk_recursive(neigh, collected, exclude)
        return collected
def walk_recursive ( self , idx , collected = None , exclude = None ) : if collected is None : collected = [ ] if exclude is None : exclude = [ ] for neigh in self . get_neigh ( idx ) : if neigh in exclude : continue collected . append ( neigh ) exclude . append ( neigh ) self . walk_recursive ( neigh , collected , exclude ) return collected
walk molecular graph and return subgraphs that are bond-connected
walk molecular graph and return subgraphs that are bond - connected
""" walk molecular graph and return subgraphs that are bond-connected"""
self
idx
collected
exclude