Spaces:
Runtime error
Runtime error
Commit
·
f1262ae
1
Parent(s):
be053e4
fix typo in dictionary d_lc
Browse files
app.py
CHANGED
@@ -112,6 +112,6 @@ return_value = agraph(nodes=nodes,
|
|
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(
|
116 |
df_lc = pd.DataFrame.from_dict(nx.laplacian_centrality(G))
|
117 |
st.bar_chart(df_lc)
|
|
|
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_lc[0])
|
116 |
df_lc = pd.DataFrame.from_dict(nx.laplacian_centrality(G))
|
117 |
st.bar_chart(df_lc)
|