diva.pod.lwgraph
Interface LWNode

All Known Implementing Classes:
BasicLWNode

public interface LWNode

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

Version:
$Revision: 1.2 $
Author:
John Reekie

Method Summary
 int getNodeId()
          Return the integer id of this node.
 void setNodeId(int id)
          Set the integer id of this node.
 

Method Detail

getNodeId

int getNodeId()
Return the integer id of this node. 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.


setNodeId

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



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