Update app.py
Browse files
app.py
CHANGED
|
@@ -31,6 +31,12 @@ def draw_graph(G, pos=None, title="Graph Visualization"):
|
|
| 31 |
nx.draw(G, pos=pos, with_labels=True, node_color='lightblue', node_size=500, font_size=10, font_weight='bold')
|
| 32 |
st.pyplot(plt)
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
# Function to convert the circuit to an equivalent formula.
|
| 35 |
def circuit_to_formula(circuit):
|
| 36 |
formula = nx.dag_to_branching(circuit)
|
|
|
|
| 31 |
nx.draw(G, pos=pos, with_labels=True, node_color='lightblue', node_size=500, font_size=10, font_weight='bold')
|
| 32 |
st.pyplot(plt)
|
| 33 |
|
| 34 |
+
import streamlit as st
|
| 35 |
+
import networkx as nx
|
| 36 |
+
import matplotlib.pyplot as plt
|
| 37 |
+
from sympy.logic.boolalg import Or, And, Not
|
| 38 |
+
from sympy import symbols # Import symbols from sympy
|
| 39 |
+
|
| 40 |
# Function to convert the circuit to an equivalent formula.
|
| 41 |
def circuit_to_formula(circuit):
|
| 42 |
formula = nx.dag_to_branching(circuit)
|