public static List < CDKRMap > getSubgraphMap ( IAtomContainer sourceGraph , IAtomContainer targetGraph , boolean shouldMatchBonds ) throws CDKException { List < CDKRMap > result = null ; List < List < CDKRMap > > rMapsList = search ( sourceGraph , targetGraph , new BitSet ( ) , getBitSet ( targetGraph ) , false , false , shouldMatchBonds ) ; if ( ! rMapsList . isEmpty ( ) ) { result = rMapsList . get ( 0 ) ; } return result ; }
Returns the first subgraph bondA1 mapping found for targetGraph in sourceGraph .