com.kuka.graph.impl
Class DefaultEdge<N>

java.lang.Object
  extended by com.kuka.graph.impl.DefaultEdge<N>
Type Parameters:
N - the type of nodes this edge connects.
All Implemented Interfaces:
Edge<N>

public class DefaultEdge<N>
extends Object
implements Edge<N>

Simple realization of a directed edge.


Constructor Summary
DefaultEdge(N source, N target)
          Constructor.
 
Method Summary
 N getSource()
          Returns the source node of this edge.
 N getTarget()
          Returns the target node of this edge.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultEdge

public DefaultEdge(N source,
                   N target)
Constructor.

Parameters:
source - the source.
target - the target.
Method Detail

getSource

public N getSource()
Description copied from interface: Edge
Returns the source node of this edge.

Specified by:
getSource in interface Edge<N>
Returns:
the source node

getTarget

public N getTarget()
Description copied from interface: Edge
Returns the target node of this edge.

Specified by:
getTarget in interface Edge<N>
Returns:
the target node

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2019. All rights reserved.