hacpdsae2023 commited on
Commit
9cba540
·
1 Parent(s): 1db9e9a

Add bar chart for Laplacian Centrality

Browse files

testing pandas to_dict, and streamlit bar_chart

Files changed (1) hide show
  1. app.py +3 -1
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)