com.kuka.graph
Interface Edge<N>

Type Parameters:
N - the type of the source and target node
All Known Implementing Classes:
DefaultEdge

public interface Edge<N>

This interface models an element of the edge E set of a graph G=(N,E). Each edge e=(n1,n2) connects the source node n1 to the target node n2, where n1 and n2 are elements of N.


Method Summary
 N getSource()
          Returns the source node of this edge.
 N getTarget()
          Returns the target node of this edge.
 

Method Detail

getSource

N getSource()
Returns the source node of this edge.

Returns:
the source node

getTarget

N getTarget()
Returns the target node of this edge.

Returns:
the target node


Copyright © 2019. All rights reserved.