phlower.tl.get_tree_leaves_attr

phlower.tl.get_tree_leaves_attr(tree: DiGraph, attr: str = 'original')

the implementation of fate tree merge is using the tuple for each node, thus, the tuple lengths are only 1 for the leaf nodes. we just extract the name of the leaf nodes as string return dict: {node_name: leaf attribute with string or int format}