gmedin commited on
Commit
c3c6baa
·
verified ·
1 Parent(s): 292c185

edge colour

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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='lightblue')
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)