y.algo
Class Sorting

java.lang.Object
  |
  +--y.algo.Sorting

public final class Sorting
extends Object

This class provides methods for efficiently sorting graph elements in graph structures.


Method Summary
static Node[] sortNodesByDegree(Graph graph)
          Sort nodes by degree in ascending order
static Node[] sortNodesByIntKey(Graph graph, DataProvider keys)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sortNodesByDegree

public static Node[] sortNodesByDegree(Graph graph)
Sort nodes by degree in ascending order


sortNodesByIntKey

public static Node[] sortNodesByIntKey(Graph graph,
                                       DataProvider keys)

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003