After I render a graph in dagre-d3, I would like to change the color of the outEdges of a clicked node. So far I have tried:
var outEdges = graph.outEdges(v); /* v is the vertex I clicked on */
Object.keys( outEdges ).forEach (function (edge) {
graph.edge( outEdges[edge] ).style("stroke", "yellow"); /* returns: Uncaught TypeError: string is not a function */
graph.edge( outEdges[edge] ).attr("style", "stroke: yellow"); /* returns: Uncaught TypeError: undefined is not a function */
});
After I render a graph in dagre-d3, I would like to change the color of the outEdges of a clicked node. So far I have tried: