i have DAG that i'am convert to pandas_DF
the DF is:
df=pd.DataFrame({'dad':[1, 2, 3, 4,5, "T1", "T2"],
'children':["T1","T1","T2","T2",6,"T3","T3"]})
print (df)
i want to get list of all the nodes\edges that connected in my DAG (graph) so it will look like this
df=pd.DataFrame({'dad':[1, 2, 3, 4,5, "T1", "T2","T3"],
'children':["T1","T1","T2","T2",6,"T3","T3","X"],
'chain':[0,0,0,0,0,[1,2],[3,4],[1,2,3,4,"T1","T2"]] })
i like to know the connection between the edges all over the chain, like the new column "chain" . its can be a new column like here ,and the order is not important too
i use pandas and networkx, but i will be happy to know a new library of DAG like networkx for python.
