Update app.py
Browse files
app.py
CHANGED
|
@@ -381,7 +381,7 @@ def make_figure(d: int,
|
|
| 381 |
x=[x1, x2],
|
| 382 |
y=[y1, y2],
|
| 383 |
mode="lines",
|
| 384 |
-
line=dict(width=max(1, edge_w *
|
| 385 |
opacity=1.0,
|
| 386 |
hoverinfo="skip",
|
| 387 |
name=f"path bit {b}",
|
|
@@ -398,7 +398,7 @@ def make_figure(d: int,
|
|
| 398 |
x=[x1, x2],
|
| 399 |
y=[y1, y2],
|
| 400 |
mode="lines",
|
| 401 |
-
line=dict(width=max(1, edge_w *
|
| 402 |
opacity=1.0,
|
| 403 |
hoverinfo="skip",
|
| 404 |
name="negated path",
|
|
@@ -430,7 +430,7 @@ def make_figure(d: int,
|
|
| 430 |
if mark_distances and v in neighbor_set:
|
| 431 |
sizes.append(base_size * 1.5)
|
| 432 |
else:
|
| 433 |
-
sizes.append(base_size * (
|
| 434 |
|
| 435 |
if path and (v == path[0] or v == path[-1]):
|
| 436 |
colors.append("#111") # endpoints
|
|
|
|
| 381 |
x=[x1, x2],
|
| 382 |
y=[y1, y2],
|
| 383 |
mode="lines",
|
| 384 |
+
line=dict(width=max(1, edge_w * 2), color=dim_color(b)),
|
| 385 |
opacity=1.0,
|
| 386 |
hoverinfo="skip",
|
| 387 |
name=f"path bit {b}",
|
|
|
|
| 398 |
x=[x1, x2],
|
| 399 |
y=[y1, y2],
|
| 400 |
mode="lines",
|
| 401 |
+
line=dict(width=max(1, edge_w * 2), color="red"),
|
| 402 |
opacity=1.0,
|
| 403 |
hoverinfo="skip",
|
| 404 |
name="negated path",
|
|
|
|
| 430 |
if mark_distances and v in neighbor_set:
|
| 431 |
sizes.append(base_size * 1.5)
|
| 432 |
else:
|
| 433 |
+
sizes.append(base_size * (2 if v in in_path else 1))
|
| 434 |
|
| 435 |
if path and (v == path[0] or v == path[-1]):
|
| 436 |
colors.append("#111") # endpoints
|