Currently, I am attempting to dynamically apply custom colors to the edges and update the graph in sigmajs. While the canvas and webgl renderers are functioning correctly, the svg renderer is not cooperating, as it defaults to the edge's default color.
If you would like to explore the library further, here is the link: https://github.com/jacomyal/sigma.js
Could someone guide me on whether there are any additional configurations needed?
The code snippet I have been working with looks like:
$.each(s.graph.edges(), function(index, edge) {
edge.color = '#f00';
});
In addition, I am utilizing the forceAtlas2 plugin for layout adjustments, which can be found here: https://github.com/jacomyal/sigma.js/tree/master/plugins/sigma.layout.forceAtlas2
This color modification successfully applies to canvas and webgl, but it seems to be ineffective for svg. As the canvas offers lower resolution and webgl lacks support for curved edges, I rely on svg for functionality. Any suggestions or assistance would be greatly appreciated.