def rdkitSubstrMatches(targetRdkitMol, refRdkitMol, *args, **kwargs):
    """
    Matches two rdkit mol object graphs with each other.
    Outputs a list of tuples of corresponding atoms indices.

    Arguments:
    ----------
    targetRdkitMol : object
        target rdkit molecule object
    refRdkitMol : object
        reference rdkit molecule object
    *args : various
        any allowed positional arguments to rdkit
        GetSubstructMatches method
    **kwargs : dictionary
        any allowed key=value arguments to rdkit
        GetSubstructMatches method

    Returns:
    ----------
    match: int list
        a list containing reference molecule atoms
        indices matching the target molecule atoms
        e.g. match = [4,3,2,0,1] means:
        target atom   ref atom
             0      ->     4
             1      ->     3
             2      ->     2
             3      ->     0
             4      ->     1
    """
    matches = refRdkitMol.GetSubstructMatches(targetRdkitMol, *args, **kwargs)
    return matches