My force directed graph contains a variable with all my link data.
var linkData = d3.selectAll(".link").data();
In order to change the class of certain edges based on their values, I am using a for loop to iterate through the data and identify the desired edge. If the edge meets the criteria, I want to change its class to "visible"; otherwise, I want to change it to "hidden".
My challenge lies in determining how to select the specific link in the graph corresponding to linkData[3];
. Since linkData only represents the data, I am unsure how to access the actual object.