Skip to content

Commit

Permalink
Remove direct usage of 'AtomContainer'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Feb 28, 2018
1 parent bfacfe9 commit 8e1e3ef
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,12 @@ public static void breadthFirstSearch(IAtomContainer atomContainer, List<IAtom>
// now look at bonds
List<IBond> bonds = atomContainer.getConnectedBondsList(atom);
for (IBond bond : bonds) {
nextAtom = bond.getOther(atom);
if (!bond.getFlag(CDKConstants.VISITED)) {
molecule.addAtom(nextAtom);
molecule.addBond(bond);
bond.setFlag(CDKConstants.VISITED, true);
}
nextAtom = bond.getOther(atom);
if (!nextAtom.getFlag(CDKConstants.VISITED)) {
// logger.debug("wie oft???");
newSphere.add(nextAtom);
Expand Down

0 comments on commit 8e1e3ef

Please sign in to comment.