edge colour
Browse files
app.py
CHANGED
|
@@ -98,7 +98,7 @@ def dynamic_visualize_graph(graph, start_node, layers=3, top_k=5, show_titles=Fa
|
|
| 98 |
edge = (node, neighbor)
|
| 99 |
if edge not in added_edges:
|
| 100 |
edge_width = math.log(weight + 1) * 8
|
| 101 |
-
net.add_edge(node, neighbor, label=f"w:{weight}", width=edge_width, color='
|
| 102 |
added_edges.add(edge)
|
| 103 |
visited_nodes.add(neighbor)
|
| 104 |
next_nodes.append(neighbor)
|
|
|
|
| 98 |
edge = (node, neighbor)
|
| 99 |
if edge not in added_edges:
|
| 100 |
edge_width = math.log(weight + 1) * 8
|
| 101 |
+
net.add_edge(node, neighbor, label=f"w:{weight}", width=edge_width, color='lightgray')
|
| 102 |
added_edges.add(edge)
|
| 103 |
visited_nodes.add(neighbor)
|
| 104 |
next_nodes.append(neighbor)
|