Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,6 +80,8 @@ def algorithms_cycle_detection():
|
|
80 |
for edge in edges_input.split(","):
|
81 |
edge = edge.strip()
|
82 |
if edge: # Ensure the string is not empty
|
|
|
|
|
83 |
# Remove spaces and extra characters, and convert to tuple
|
84 |
edge_tuple = edge.strip("()").split(",")
|
85 |
if len(edge_tuple) == 2:
|
|
|
80 |
for edge in edges_input.split(","):
|
81 |
edge = edge.strip()
|
82 |
if edge: # Ensure the string is not empty
|
83 |
+
# Print the edge string to debug
|
84 |
+
st.write(f"Parsing edge: {edge}")
|
85 |
# Remove spaces and extra characters, and convert to tuple
|
86 |
edge_tuple = edge.strip("()").split(",")
|
87 |
if len(edge_tuple) == 2:
|