| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.algo.Sorting
public final class Sorting
This class provides methods for efficiently sorting graph elements in graph structures.
| Method Summary | |
|---|---|
| static Node[] | sortNodesByDegree(Graph graph)Sorts the nodes of a given graph by degree in ascending order. | 
| static Node[] | sortNodesByIntKey(Graph graph,
                  DataProvider keys)Sorts the nodes of a given graph by an integer key associated with each node through a DataProvider. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static Node[] sortNodesByDegree(Graph graph)
graph - the given graph
Nodes sorted by degree in ascending order
public static Node[] sortNodesByIntKey(Graph graph,
                                       DataProvider keys)
DataProvider.
 The nodes are sorted in ascending order.
graph - the given graphkeys - the DataProvider that returns the keys based on which the nodes will be sorted
Nodes sorted by an integer key in ascending order| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||