public class ComputeNodeOrder extends Object
Modifier and Type | Method and Description |
---|---|
static Object[][] |
computeNodeOrder(Object[] objects,
Object[][] references)
Sorts the given list of projects in a manner that honors the given
project reference relationships.
|
public static Object[][] computeNodeOrder(Object[] objects, Object[][] references)
When there is an arbitrary choice, vertexes are ordered as supplied. Arranged projects in descending alphabetical order generally results in an order that builds "A" before "Z" when there are no other constraints.
Ref: Cormen, Leiserson, and Rivest
objects
- a list of projects (element type:
IProject
)references
- a list of project references [A,B] meaning that A
references B (element type: IProject[]
)Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.