Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
import igraph as ig
|
2 |
import plotly.graph_objects as go
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
# Let's create a list of edges with a binary tree structure up to depth 6
|
5 |
# A binary tree has a structure where each node has two children, often referred to as left and right child.
|
6 |
# We will assume that the topmost node (root) has an index 0.
|
|
|
1 |
import igraph as ig
|
2 |
import plotly.graph_objects as go
|
3 |
|
4 |
+
import gradio as gr
|
5 |
+
import plotly.graph_objects as go
|
6 |
+
import os
|
7 |
+
from collections import defaultdict
|
8 |
+
import igraph as ig
|
9 |
+
|
10 |
# Let's create a list of edges with a binary tree structure up to depth 6
|
11 |
# A binary tree has a structure where each node has two children, often referred to as left and right child.
|
12 |
# We will assume that the topmost node (root) has an index 0.
|