示例#1
0
文件: bfs.py 项目: ahasgw/Helium
    def test_bfs_5(self):
        mol = helium.Molecule()
        SMILES.read('C1CCC(CC)CC1', mol)

        atomMask = [True] * mol.numAtoms()
        atomMask[0] = False

        visitor = helium.BFSDebugVisitor()
        helium.breadth_first_search_mask(mol, mol.atom(5), visitor, atomMask)
        self.compare_file('bfs5.log', visitor.output)
示例#2
0
文件: bfs.py 项目: dualword/Helium
    def test_bfs_5(self):
        mol = helium.Molecule()
        SMILES.read('C1CCC(CC)CC1', mol)

        atomMask = [True] * mol.numAtoms()
        atomMask[0] = False

        visitor = helium.BFSDebugVisitor()
        helium.breadth_first_search_mask(mol, mol.atom(5), visitor, atomMask)
        self.compare_file('bfs5.log', visitor.output)
示例#3
0
文件: bfs.py 项目: ahasgw/Helium
    def test_bfs_3(self):
        mol = helium.Molecule()
        SMILES.read('C1CCC(CC)CC1', mol)

        atomMask = [True] * mol.numAtoms()
        atomMask[4] = False
        atomMask[5] = False
        bondMask = [True] * mol.numBonds()
        bondMask[3] = False
        bondMask[4] = False
        bondMask[5] = False

        visitor = helium.BFSDebugVisitor()
        helium.breadth_first_search_mask(mol, visitor, atomMask, bondMask)
        self.compare_file('bfs3.log', visitor.output)
示例#4
0
文件: bfs.py 项目: dualword/Helium
    def test_bfs_3(self):
        mol = helium.Molecule()
        SMILES.read('C1CCC(CC)CC1', mol)

        atomMask = [True] * mol.numAtoms()
        atomMask[4] = False
        atomMask[5] = False
        bondMask = [True] * mol.numBonds()
        bondMask[3] = False
        bondMask[4] = False
        bondMask[5] = False

        visitor = helium.BFSDebugVisitor()
        helium.breadth_first_search_mask(mol, visitor, atomMask, bondMask)
        self.compare_file('bfs3.log', visitor.output)