def get_parent(self, id_) -> str:
    ' get id of the parent node '
    return list(self._nodes[id_]['parents'].keys())[0]
get id of the parent node
def get_parent(self, id_) -> str:
    '  '
    return list(self._nodes[id_]['parents'].keys())[0]