org.dishevelled.graph
Interface Edge<N,E>

Type Parameters:
N - node value type
E - edge value type

public interface Edge<N,E>

Typed directed graph edge.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Method Summary
 E getValue()
          Return the value at this edge.
 void setValue(E value)
          Set the value at this edge to value (optional operation).
 Node<N,E> source()
          Return the source node for this edge.
 Node<N,E> target()
          Return the target node for this edge.
 

Method Detail

getValue

E getValue()
Return the value at this edge.

Returns:
the value at this edge

setValue

void setValue(E value)
Set the value at this edge to value (optional operation).

Parameters:
value - value at this edge
Throws:
UnsupportedOperationException - if the setValue(E) operation is not supported by this edge

source

Node<N,E> source()
Return the source node for this edge. The source node will not be null.

Returns:
the source node for this edge

target

Node<N,E> target()
Return the target node for this edge. The target node will not be null.

Returns:
the target node for this edge


Copyright (c) 2004-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).