private static IAtom getCommon ( IBond bndA , IBond bndB ) { IAtom beg = bndA . getBegin ( ) ; IAtom end = bndA . getEnd ( ) ; if ( bndB . contains ( beg ) ) return beg ; else if ( bndB . contains ( end ) ) return end ; else return null ; }
Access the common atom shared by two bonds .