private static IBond getBond ( IAtomContainer container , EdgeToBondMap bondMap , int u , int v ) { if ( bondMap != null ) return bondMap . get ( u , v ) ; return container . getBond ( container . getAtom ( u ) , container . getAtom ( v ) ) ; }
Obtain the bond between the atoms at index u and v . If the bondMap is non - null it is used for direct lookup otherwise the slower linear lookup in container is used .