cytoscape.js force directed layout

185 views
Skip to first unread message

pascal.cuxac

unread,
Mar 6, 2015, 8:25:29 AM3/6/15
to cytoscape...@googlegroups.com
Hello,
I'm using cytoscape.js and i want visualize a network with weighted edges.
I'm  trying with "cola" or "arbor", but i don't know parametrize to take into account the  weight of the edges.
Can you help me please ?

Max Franz

unread,
Mar 12, 2015, 6:40:48 PM3/12/15
to cytoscape...@googlegroups.com
You can set edge lengths functionally, e.g. for Cola one of:

  // different methods of specifying edge length
  // each can be a constant numerical value or a function like `function( edge ){ return 2; }`
  edgeLength: undefined, // sets edge length directly in simulation
  edgeSymDiffLength: undefined, // symmetric diff edge length in simulation
  edgeJaccardLength: undefined, // jaccard edge length in simulation

In future, please direct Cy.js questions to Stackoverflow.
Reply all
Reply to author
Forward
0 new messages