How can I predefine when I select a few nodes that are connected or simply edges, to make the width of the selected edges be bigger, without affecting the rest of edges of the entire network or the node's width?
I predefined this when the nodes or edges are selected:
$('#cy').cytoscape({
style: cytoscape.stylesheet()
.selector(':selected')
.css({
'background-color': 'black',
'line-color': 'red',
'target-arrow-color': 'black',
'source-arrow-color': 'black',
'opacity': 1
})...
but there is no 'line-width'
, so if I put 'width': 5
it will appy it to all the edges and nodes.
So how could I modify the edge width just when selected and leaving the same the rest of the graph?
Thanks in advance!