Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def display_eigenvalue_analysis():
|
|
55 |
|
56 |
# Calculate the normalized Laplacian matrix
|
57 |
L = nx.normalized_laplacian_matrix(G_custom)
|
58 |
-
eigenvalues =
|
59 |
|
60 |
# Print largest and smallest eigenvalues
|
61 |
st.write(f"Largest eigenvalue: {max(eigenvalues)}")
|
|
|
55 |
|
56 |
# Calculate the normalized Laplacian matrix
|
57 |
L = nx.normalized_laplacian_matrix(G_custom)
|
58 |
+
eigenvalues = np.linalg.eigvals(L.toarray())
|
59 |
|
60 |
# Print largest and smallest eigenvalues
|
61 |
st.write(f"Largest eigenvalue: {max(eigenvalues)}")
|