javascript - Directed edges in sigma.js - a minimal example -
question
What is required to create guided edges? I am looking for a minimum example which is currently based on the minimum example on them.
Attempts
I tried to accept the example of the minimum graph in the following manner
sigma.parsers.json ('data.json', {Container: 'Container', Settings: {defaultNodeColor: '# ec5148', + defaultEdgeArrow: 'source' // Add this line should add arrow?}});
Unfortunately, it does not produce different results.
I also tried to modify the edges in the graph
"edges": [{"Id": "e0", "source": "n0", "Target": "n1", + "arrow": "source"}, ...,]
But then it had no effect.
More Complex Example
Side Arrow Rendering was added to it. For some examples, this link and
I am struggling with this issue myself. It seems that in the last few months Sigma JS had a major redesign and the code of the examples is from the old version of Sigma.JS.
They have the ability to provide an arrow, but to change the settings have changed these and some options were lost (You can not specify target, source, or both, you only target : "{{Id:": "E0", "source": "n0", "target": "n1", + "type"):
"edges" : "Arrow",}, ...,]
There is also a valid option for the "Curved Arrow" type.
This problem is copied for more information. See.
Comments
Post a Comment