Skip to content
maxkfranz edited this page Dec 16, 2011 · 6 revisions

cy.layout()

Apply a layout to the graph.

cy.layout( options )

  • options : An options object, required fields depend on the layout specified in options.name

Details

A layout may not work if it is not designed for the coordinates supported by the renderer. All layouts that come with Cytoscape Web work with the default SVG renderer: They all use 2D Cartesian coordinates (x, y).

Examples

Call the random layout:

cy.layout({
  name: "random"
});

Clone this wiki locally