Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edges reflecting weight in Cytoscape

I just started looking into Cytoscape

I was looking at the example here. My goal is to have a weighted directed graph (pretty much like a dendrogram, except weighted). I need to have the edges reflect the weight (either in terms of length, or color but some sort of visual denotion). However, from the example, irrespective of what the edge weight is, I see no change in the graph. Does anyone know how I can achieve that?

Alternately, if there are other JS libraries that can help me visualize a weighted graph, I'd appreciate pointers on that as well.

like image 851
Bugaboo Avatar asked Oct 19 '25 15:10

Bugaboo


1 Answers

Simply set your edge style appropriately in your stylesheet, with a mapper.

like image 188
maxkfranz Avatar answered Oct 21 '25 04:10

maxkfranz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!