jcommon.graph.impl
Class AdjacencyListPair<TVertex extends IVertex>

java.lang.Object
  extended by jcommon.graph.Pair<TVertex,List<TVertex>>
      extended by jcommon.graph.impl.AdjacencyListPair<TVertex>
All Implemented Interfaces:
IAdjacencyListPair<TVertex>

public class AdjacencyListPair<TVertex extends IVertex>
extends Pair<TVertex,List<TVertex>>
implements IAdjacencyListPair<TVertex>

See Also:
IAdjacencyListPair

Constructor Summary
AdjacencyListPair(TVertex value, List<TVertex> outNeighbors)
           
 
Method Summary
 List<TVertex> getOutNeighbors()
          The list of out-neighbors for the vertex provided by IAdjacencyListPair.getVertex().
 TVertex getVertex()
          The vertex for this pair.
 
Methods inherited from class jcommon.graph.Pair
equals, getValue1, getValue2, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdjacencyListPair

public AdjacencyListPair(TVertex value,
                         List<TVertex> outNeighbors)
See Also:
IAdjacencyListPair
Method Detail

getVertex

public TVertex getVertex()
Description copied from interface: IAdjacencyListPair
The vertex for this pair.

Specified by:
getVertex in interface IAdjacencyListPair<TVertex extends IVertex>
Returns:
An instance of IVertex of type TVertex.
See Also:
IAdjacencyListPair.getVertex()

getOutNeighbors

public List<TVertex> getOutNeighbors()
Description copied from interface: IAdjacencyListPair
The list of out-neighbors for the vertex provided by IAdjacencyListPair.getVertex().

Specified by:
getOutNeighbors in interface IAdjacencyListPair<TVertex extends IVertex>
Returns:
An instance of a list of IVertex of type TVertex.
See Also:
IAdjacencyListPair.getOutNeighbors()


Copyright © 2012-2013. All Rights Reserved.