diva.pod.lwgraph
Interface LWEdge

All Known Implementing Classes:
BasicLWEdge

public interface LWEdge

The interface to be implemented for edge objects to be used with the light-weight graph.

Version:
$Revision: 1.2 $
Author:
John Reekie

Method Summary
 int getEdgeId()
          Return the integer id of this edge.
 void setEdgeId(int id)
          Set the integer id of this edge.
 

Method Detail

getEdgeId

int getEdgeId()
Return the integer id of this edge. Although not strictly necessary, it is recommended that the default value returned by this method be -1, in order to catch errors in graph usage.


setEdgeId

void setEdgeId(int id)
Set the integer id of this edge. Clients can throw an exception if the id has previously been set, in the reasonable assumption that indicates a programming error.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.