public static List < CDKRMap > getSubgraphAtomsMap ( IAtomContainer sourceGraph , IAtomContainer targetGraph , boolean shouldMatchBonds ) throws CDKException { List < CDKRMap > list = checkSingleAtomCases ( sourceGraph , targetGraph ) ; if ( list == null ) { return makeAtomsMapOfBondsMap ( CDKMCS . getSubgraphMap ( sourceGraph , targetGraph , shouldMatchBonds ) , sourceGraph , targetGraph ) ; } else if ( list . isEmpty ( ) ) { return null ; } else { return list ; } }
Returns the first subgraph atom mapping found for targetGraph in sourceGraph .