def get_character_interactions(links, main_ch):
    """
    Gets the interactions of all characters with the main character
    :param links: List of all links in the network
    :param main_ch: The assumes main character name
    :return: Dictionary of all characters and their interactions with the main character
    """
    character_interactions = {}
    for link in links:
        if link['source'] == main_ch:
            character_interactions[link['target']] = link['value']
        elif link['target'] == main_ch:
            if link['source'] in character_interactions.keys():
                character_interactions[link['source']] += link['value']
            else:
                character_interactions[link['source']] = link['value']
    return character_interactions