private IAtom [ ] getAtoms ( IAtom focus , IAtom substituent , IAtom otherFocus ) { IAtom otherSubstituent = focus ; for ( int w : graph [ atomToIndex . get ( focus ) ] ) { IAtom atom = container . getAtom ( w ) ; if ( ! atom . equals ( substituent ) && ! atom . equals ( otherFocus ) ) otherSubstituent = atom ; } return new IAtom [ ] { substituent , otherSubstituent , otherFocus } ; }
Create an array of three atoms for a side of the double bond . This is used to determine the winding of one side of the double bond .