Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ g = ig.Graph.Tree(7, 2) # A binary tree with 7 nodes
|
|
70 |
lay = g.layout('rt') # Reingold-Tilford layout
|
71 |
|
72 |
# Prepare node and edge traces for Plotly
|
73 |
-
edge_trace = go.Scatter(
|
74 |
x=[lay[edge[0]][0], lay[edge[1]][0], None],
|
75 |
y=[lay[edge[0]][1], lay[edge[1]][1], None],
|
76 |
line=dict(width=0.5, color='#888'),
|
|
|
70 |
lay = g.layout('rt') # Reingold-Tilford layout
|
71 |
|
72 |
# Prepare node and edge traces for Plotly
|
73 |
+
edge_trace = [go.Scatter(
|
74 |
x=[lay[edge[0]][0], lay[edge[1]][0], None],
|
75 |
y=[lay[edge[0]][1], lay[edge[1]][1], None],
|
76 |
line=dict(width=0.5, color='#888'),
|