5

How to increase size of edges arrow in sigmajs? I have this snippet of code.

s = new sigma({
graph: g,
container: 'network-graph',
renderer: {
    container: document.getElementById('network-graph'),
    type: 'canvas'
},
settings: {
    maxNodeSize: 16,
    minNodeSize: 45,
    minEdgeSize: 5,
    maxEdgeSize: 5,
    minArrowSize: 25
}
});
InbetweenWeekends
  • 1,405
  • 3
  • 23
  • 28
melvil james
  • 592
  • 7
  • 18

2 Answers2

4

On every sigma edge, there is a property size. If you put an higger number, this will increase the edge.

logisima
  • 7,340
  • 1
  • 18
  • 31
4

Add the attribute size when the edges of g are been created!

Example:

g.edges.push({
    id: 'myID',
    source: 'mySource',
    target: 'myTarget',
    size: 2, //here put a value that you want
    color: '#ccc',
    type:'arrow'
  });
Yenier Torres
  • 748
  • 1
  • 7
  • 13