My data is: [array([5]), array([1,9]), array([0, 4.5, 12.2]), array([-2, 2, 9, 14])]
and I am trying to plot a corresponding "tree" with python. These are the x coord, and theI tried to collect the edges:
for i in range(0,n+1):
for j in range(1,i+2):
if i<n:
G.add_edge((i,j),(i+1,j))
G.add_edge((i,j),(i+1,j+1))
posG={}
for node in G.node in G.nodes():
posG[node]=(node[0],n+2+node[0]-2*node[1])
But this do not seem to help me here.