nct.graph
Interface Edge<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>

All Superinterfaces:
java.lang.Comparable<Edge<NodeType,WeightType>>
All Known Implementing Classes:
BasicEdge

public interface Edge<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>
extends java.lang.Comparable<Edge<NodeType,WeightType>>

An generic interface describing the basic components of an edge: source and target nodes, edge weight, and description.


Method Summary
 java.lang.String getDescription()
           
 NodeType getSourceNode()
           
 NodeType getTargetNode()
           
 WeightType getWeight()
           
 void setDescription(java.lang.String desc)
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getDescription

java.lang.String getDescription()
Returns:
The description of the edge.

setDescription

void setDescription(java.lang.String desc)
Parameters:
desc - The description of the edge.

getSourceNode

NodeType getSourceNode()
Returns:
The source node of this edge.

getTargetNode

NodeType getTargetNode()
Returns:
The target node of this edge.

getWeight

WeightType getWeight()
Returns:
The weight of this edge.