jcommon.graph.impl
Class AdjacencyListPair<TVertex extends IVertex>
java.lang.Object
jcommon.graph.Pair<TVertex,List<TVertex>>
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
AdjacencyListPair
public AdjacencyListPair(TVertex value,
List<TVertex> outNeighbors)
- See Also:
IAdjacencyListPair
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.