private static String getCommonSymbol ( IBond bondA , IBond bondB ) { String symbol = "" ; if ( bondA . contains ( bondB . getBegin ( ) ) ) { symbol = bondB . getBegin ( ) . getSymbol ( ) ; } else if ( bondA . contains ( bondB . getEnd ( ) ) ) { symbol = bondB . getEnd ( ) . getSymbol ( ) ; } return symbol ; }
Determines if 2 bondA1 have 1 atom in common and returns the common symbol