hacpdsae2023 commited on
Commit
be053e4
·
1 Parent(s): 4b87d72

Fix bug on dataframe laplacian centrality

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -111,5 +111,7 @@ return_value = agraph(nodes=nodes,
111
 
112
  st.markdown('The Laplacian centrality is a measure of closeness')
113
  st.write(str(nx.laplacian_centrality(G)))
 
 
114
  df_lc = pd.DataFrame.from_dict(nx.laplacian_centrality(G))
115
  st.bar_chart(df_lc)
 
111
 
112
  st.markdown('The Laplacian centrality is a measure of closeness')
113
  st.write(str(nx.laplacian_centrality(G)))
114
+ d_lc = nx.laplacian_centrality(G)
115
+ st.write(d_cl[0])
116
  df_lc = pd.DataFrame.from_dict(nx.laplacian_centrality(G))
117
  st.bar_chart(df_lc)