phlower.tl.find_a_branch_all_predecessors

phlower.tl.find_a_branch_all_predecessors(fate_tree: DiGraph | None = None, daughter_node: str | None = None)

find all predecessors of a node of same family, i.e. all nodes with the same prefix return list starts with the most grand father node

Parameters

fate_tree: networkx.DiGraph

fate tree

daughter_node: str

the node to find all predecessors