Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -93,10 +93,15 @@ if sidebar_option == "Introductory Tutorial":
|
|
93 |
("Algorithms: Greedy Coloring", "Colors nodes so that no two adjacent nodes share the same color. For example, in exam scheduling, this ensures no two overlapping exams are assigned the same room.")
|
94 |
]
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
for title, desc in descriptions:
|
97 |
-
st.
|
98 |
-
|
99 |
-
st.write("---")
|
100 |
|
101 |
def plot_greedy_coloring(graph):
|
102 |
# Apply greedy coloring
|
|
|
93 |
("Algorithms: Greedy Coloring", "Colors nodes so that no two adjacent nodes share the same color. For example, in exam scheduling, this ensures no two overlapping exams are assigned the same room.")
|
94 |
]
|
95 |
|
96 |
+
# for title, desc in descriptions:
|
97 |
+
# st.subheader(title) # Removed the ### here
|
98 |
+
# st.write(desc)
|
99 |
+
# st.write("---")
|
100 |
+
|
101 |
+
# Loop through the descriptions and create expanders
|
102 |
for title, desc in descriptions:
|
103 |
+
with st.expander(title):
|
104 |
+
st.write(desc)
|
|
|
105 |
|
106 |
def plot_greedy_coloring(graph):
|
107 |
# Apply greedy coloring
|