An atom cannot be both a nitrogen and an oxygen.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
Iterate over connected bonds.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>