com.jgraph.layout
public class JGraphFacade.DefaultComparator extends Object implements Comparator
roots
in the model. Enables layouts
with levels to be laid out deterministically. Be very careful
using the default comparator on the default graph model,
getIndexOfRoot
has linear performance and so sorting the
entire model roots will have quadratic performance.
Method Summary | |
---|---|
int | compare(Object c1, Object c2) |