I am setting up a Graphology Graph and trying to display it using React Sigma and I have registered the nodeProgram. Here are some relevant parts of my code:
const graph = new MultiDirectedGraph();
for (let i = 0; i < network.nodes.size(); i++) {
try {
graph.addNode(i.toString(), {
molCounts: network.molCounts.get(i),
size: network.molCounts.get(i),
smiles: network.nodes.get(i),
nodeType: smilesList.includes(network.nodes.get(i))
? "whole"
: "fragment",
type: "image",
image: "./unknown.svg",
});
} catch {
console.error("Error in adding node to graph");
}
I have taken the SVG file from this repo and when I change the SVG file to something else that does not exist, I see an error so the image is being searched but it is just not displayed.
I am setting up a Graphology Graph and trying to display it using React Sigma and I have registered the nodeProgram. Here are some relevant parts of my code:
Here's how I have set SigmaContainer:
And here is how I setup the nodes:
I have taken the SVG file from this repo and when I change the SVG file to something else that does not exist, I see an error so the image is being searched but it is just not displayed.
Here's a screenshot: