Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def network_visualizer(city, year, num_nodes):
|
|
59 |
if target not in node_roles or node_roles[target] == "target":
|
60 |
node_roles[target] = "target"
|
61 |
node_colors[target] = value_to_hex(attribute_value)
|
62 |
-
net.add_node(target, color=value_to_hex(attribute_value), font={'size': 20, 'color': 'red'}, label=f"{target})
|
63 |
edge_color = value_to_hex(attribute_value)
|
64 |
net.add_edge(source, target, color=edge_color, value=attribute_value)
|
65 |
#net.add_node(source, color=value_to_hex(hadith_count), font = {'size':30, 'color': 'orange'})
|
|
|
59 |
if target not in node_roles or node_roles[target] == "target":
|
60 |
node_roles[target] = "target"
|
61 |
node_colors[target] = value_to_hex(attribute_value)
|
62 |
+
net.add_node(target, color=value_to_hex(attribute_value), font={'size': 20, 'color': 'red'}, label=f"{target}")
|
63 |
edge_color = value_to_hex(attribute_value)
|
64 |
net.add_edge(source, target, color=edge_color, value=attribute_value)
|
65 |
#net.add_node(source, color=value_to_hex(hadith_count), font = {'size':30, 'color': 'orange'})
|