jcommon.graph.impl
Class Edge<TVertex extends IVertex>
java.lang.Object
jcommon.graph.impl.Edge<TVertex>
- All Implemented Interfaces:
- IEdge<TVertex>
public class Edge<TVertex extends IVertex>
- extends Object
- implements IEdge<TVertex>
- See Also:
IEdge
from
public final TVertex extends IVertex from
to
public final TVertex extends IVertex to
Edge
public Edge(TVertex from,
TVertex to)
getFrom
public TVertex getFrom()
- Description copied from interface:
IEdge
- Retrieves a reference of
IVertex of type TVertex that will begin the edge.
- Specified by:
getFrom in interface IEdge<TVertex extends IVertex>
- Returns:
- An instance of
IVertex of type TVertex that begins the edge.
getTo
public TVertex getTo()
- Description copied from interface:
IEdge
- Retrieves a reference of
IVertex of type TVertex that is being pointed to.
- Specified by:
getTo in interface IEdge<TVertex extends IVertex>
- Returns:
- An instance of
IVertex of type TVertex that is being pointed to.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2012-2013. All Rights Reserved.