The RL algorithm

The Random Layout (RL) algorithm is not really a layout algorithm. It simply places the nodes at randomly computed positions inside a user-defined region. Nevertheless, the Random Layout algorithm can be useful when a random, initial placement is needed by another layout algorithm or in cases where an aesthetic, readable drawing is not important.

Example of RL

The following code sample uses the RandomLayout class. This code sample shows how to perform a Random Layout:
dojo.require("ibm_ilog.graphlayout.random.RandomLayout");

var randomLayout = new ibm_ilog.graphlayout.random.RandomLayout();
graph.setNodeLayout(randomLayout);
graph.performGraphLayout();