def get_parent_map(joints):
    """Returns a dict of node names to their parent node's name"""
    parent_dict = dict()
    for joint_name in list(joints.keys()):
        parent_dict[joint_name] = joints[joint_name]['parent']
    return parent_dict