private boolean isSP2Bond ( IBond bond ) { return bond . getAtomCount ( ) == 2 && bond . getBegin ( ) . getHybridization ( ) == Hybridization . SP2 && bond . getEnd ( ) . getHybridization ( ) == Hybridization . SP2 ; }
Returns true if the bond binds two atoms and both atoms are SP2 .