Spaces:
Runtime error
Runtime error
hacpdsae2023
commited on
Commit
·
9cba540
1
Parent(s):
1db9e9a
Add bar chart for Laplacian Centrality
Browse filestesting pandas to_dict, and streamlit bar_chart
app.py
CHANGED
@@ -108,4 +108,6 @@ return_value = agraph(nodes=nodes,
|
|
108 |
config=config)
|
109 |
|
110 |
st.markdown('The Laplacian centrality is a measure of closeness')
|
111 |
-
st.write(str(nx.laplacian_centrality(G)))
|
|
|
|
|
|
108 |
config=config)
|
109 |
|
110 |
st.markdown('The Laplacian centrality is a measure of closeness')
|
111 |
+
st.write(str(nx.laplacian_centrality(G)))
|
112 |
+
df_lc = pd.from_dict(nx.laplacian_centrality(G))
|
113 |
+
st.bar_chart(df_lc)
|