forked from cytoscape/cytoscape.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Randomlayout
maxkfranz edited this page Dec 16, 2011
·
3 revisions
Positions nodes in random positions.
Nodes are positioned on the range between (0, 0) and (w, h) where w and h denote the viewport width and height, respectively.
2D Cartesian (x and y)
var defaults = {
name: "random",
ready: undefined,
fit: true
};ready : A callback function that executes when the layout is done.
fit : A boolean indicating whether to adjust the zoom and pan of the graph to fit the graph to the viewport.