|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
TVertex - Type of IVertex.public interface ITopologicalSortInput<TVertex extends IVertex>
Aggregates the output of out neighbor vertices as input to a vertex being processed.
| Method Summary | |
|---|---|
boolean |
containsVertex(TVertex vertex)
Returns a boolean indicating if the input contains a key for the provided vertex. |
Object |
get(TVertex vertex)
Gets the output of an out neighbor vertex. |
Object[] |
getInputs()
Generates an array of the in-degree neighbor outputs as inputs for a vertex being processed. |
Iterable<Object> |
inputs()
Generates an instance of Iterable that allows traversing the contents of the input. |
boolean |
isEmpty()
Determines if the input is empty. |
int |
size()
The size of the ITopologicalSortInput. |
| Method Detail |
|---|
boolean isEmpty()
true if the input is empty; false otherwise.Object get(TVertex vertex)
vertex - The vertex whose output is desired.int size()
ITopologicalSortInput. This is the same as the number of in-degree vertices in the IAdjacencyList.
ITopologicalSortInput.boolean containsVertex(TVertex vertex)
vertex - The vertex for whom membership will be tested.
true if the provided vertex instance is a member of the input; false otherwise.Iterable<Object> inputs()
Iterable that allows traversing the contents of the input.
Iterable for traversing the contents of the input.Object[] getInputs()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||