tzurshubi commited on
Commit
353697a
·
verified ·
1 Parent(s): c387d40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -410,7 +410,11 @@ def make_figure(d: int,
410
  colors = []
411
  for v in nodes:
412
  base_size = node_r * 2
413
- sizes.append(base_size * (3 if v in in_path else 1))
 
 
 
 
414
 
415
  if path and (v == path[0] or v == path[-1]):
416
  colors.append("#111") # endpoints
 
410
  colors = []
411
  for v in nodes:
412
  base_size = node_r * 2
413
+
414
+ if mark_distances and v in neighbor_set:
415
+ sizes.append(base_size * 1.5)
416
+ else:
417
+ sizes.append(base_size * (3 if v in in_path else 1))
418
 
419
  if path and (v == path[0] or v == path[-1]):
420
  colors.append("#111") # endpoints