Force Directed Layout in cytoscapeweb

24 views
Skip to first unread message

sateesh kumar

unread,
Feb 13, 2015, 5:11:48 AM2/13/15
to cytoscapew...@googlegroups.com
Hi,

I am using cytoscapeweb to get the graph by getting the data from Neo4j data base. At pressent i am getting circle and random layouts. when i am trying to get the Force-direct graph iam getting following error

Can not apply layout: No such layout `ForceDirected` found; did you include its JS file?

can u guys plz help to get the
ForceDirected and Tree model layouts.

var cy=cytoscape({
container:document.getElementById('cytoscapeweb'),
layout: {name: 'ForceDirected', // tree for Tree layout
fit: true,
directed: false,
padding: 30,
circle: false,
boundingBox:
avoidOverlap: true,
roots: undefined,
maximalAdjustments: 0,
animate: false,
animationDuration: 500,
ready: undefined,
stop: undefined
}
});

Reply all
Reply to author
Forward
0 new messages