diff --git a/client/src/pages/Graph.tsx b/client/src/pages/Graph.tsx index 1d0be5a..a65dcc8 100644 --- a/client/src/pages/Graph.tsx +++ b/client/src/pages/Graph.tsx @@ -179,6 +179,17 @@ export default function Graph() { > + + + 0 ? selectedNodes.has(s.id) && selectedNodes.has(t.id) : true; + const isInEdge = hoveredNode != null && t.id === hoveredNode; const opacity = connected ? edgeOpacity(e.weight, maxEdgeWeight) : 0.03; + const strokeColor = isInEdge ? '#4ade80' : '#ff1a3d'; + const marker = !connected + ? 'url(#arrowhead-dim)' + : isInEdge + ? 'url(#arrowhead-green)' + : 'url(#arrowhead)'; return ( );