jcommon.graph
Interface IAdjacencyListPair<TVertex extends IVertex>

Type Parameters:
TVertex - Type of IVertex.
All Known Implementing Classes:
AdjacencyListPair

public interface IAdjacencyListPair<TVertex extends IVertex>

Maintains a reference between a IVertex (getVertex()) and its out-neighbors (getOutNeighbors()). Meant for use in conjunction with Pair.

See Also:
Pair

Method Summary
 List<TVertex> getOutNeighbors()
          The list of out-neighbors for the vertex provided by getVertex().
 TVertex getVertex()
          The vertex for this pair.
 

Method Detail

getVertex

TVertex getVertex()
The vertex for this pair.

Returns:
An instance of IVertex of type TVertex.

getOutNeighbors

List<TVertex> getOutNeighbors()
The list of out-neighbors for the vertex provided by getVertex().

Returns:
An instance of a list of IVertex of type TVertex.


Copyright © 2012-2013. All Rights Reserved.