raphael.planarity is a plugin for Raphaël that implements Planarity.
To instantiate Planarity, call the planarity(n)
method on a Raphaël object, where n>=4
is the complexity of the desired graph.
For example,
Raphael(0, 0, 200, 200).planarity(5);
Please see the description of the planar graph algorithm for more information about how raphael.planarity generates its planar graphs.