danielcaldas/react-d3-graph

highlightDegree coded incorrect

dmgorlesky1 opened this issue · 0 comments

highlightDegree is supposed to show a depth of 0, 1, or 2. However, the only time a depth of 2 is shown is when there exists a triangle of connections between 3 nodes. It's easier to see in an undirected graph. I've attached two images from the Sandbox
one
two
.

As you can see, when hovering over Melanie, only the triangle is shown with a depth of 2, but when you hover over Roy with a highlight of two it's only that one connection