|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjcommon.graph.impl.TopologicalSortInput<TVertex>
public class TopologicalSortInput<TVertex extends IVertex>
ITopologicalSortInput| Constructor Summary | |
|---|---|
TopologicalSortInput(Map<TVertex,Object> inputs)
Instantiates a new instance of TopologicalSortInput. |
|
| 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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TopologicalSortInput(Map<TVertex,Object> inputs)
TopologicalSortInput.
inputs - An instance of a Map that maps between a IVertex and the output from
processing it.| Method Detail |
|---|
public boolean isEmpty()
ITopologicalSortInput
isEmpty in interface ITopologicalSortInput<TVertex extends IVertex>true if the input is empty; false otherwise.ITopologicalSortInput.isEmpty()public Object get(TVertex vertex)
ITopologicalSortInput
get in interface ITopologicalSortInput<TVertex extends IVertex>vertex - The vertex whose output is desired.ITopologicalSortInput.get(IVertex)public int size()
ITopologicalSortInputITopologicalSortInput. This is the same as the number of in-degree vertices in the IAdjacencyList.
size in interface ITopologicalSortInput<TVertex extends IVertex>ITopologicalSortInput.ITopologicalSortInput.size()public boolean containsVertex(TVertex vertex)
ITopologicalSortInput
containsVertex in interface ITopologicalSortInput<TVertex extends IVertex>vertex - The vertex for whom membership will be tested.
true if the provided vertex instance is a member of the input; false otherwise.ITopologicalSortInput.containsVertex(IVertex)public Iterable<Object> inputs()
ITopologicalSortInputIterable that allows traversing the contents of the input.
inputs in interface ITopologicalSortInput<TVertex extends IVertex>Iterable for traversing the contents of the input.ITopologicalSortInput.inputs()public Object[] getInputs()
ITopologicalSortInput
getInputs in interface ITopologicalSortInput<TVertex extends IVertex>ITopologicalSortInput.getInputs()public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||