jcommon.graph
Interface IEdge<TVertex extends IVertex>

Type Parameters:
TVertex - Type of IVertex instances that this edge will connect.
All Known Implementing Classes:
Edge

public interface IEdge<TVertex extends IVertex>

Represents a connection between two instances of IVertex of type TVertex.


Method Summary
 TVertex getFrom()
          Retrieves a reference of IVertex of type TVertex that will begin the edge.
 TVertex getTo()
          Retrieves a reference of IVertex of type TVertex that is being pointed to.
 

Method Detail

getFrom

TVertex getFrom()
Retrieves a reference of IVertex of type TVertex that will begin the edge.

Returns:
An instance of IVertex of type TVertex that begins the edge.

getTo

TVertex getTo()
Retrieves a reference of IVertex of type TVertex that is being pointed to.

Returns:
An instance of IVertex of type TVertex that is being pointed to.


Copyright © 2012-2013. All Rights Reserved.