|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.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
Node
s sorted by degree in ascending orderpublic 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
Node
s sorted by an integer key in ascending order
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |