|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DistanceGraph<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>
This interface describes a method that returns the distance between two nodes. What constitutes the distance is left to the implementer.
Method Summary | |
---|---|
byte |
getDistance(NodeType nodeA,
NodeType nodeB)
Returns the minimum distance between the specified nodes. |
Methods inherited from interface nct.graph.Graph |
---|
addEdge, addEdge, addNode, clone, compareTo, degreeOfNode, getEdge, getEdgeDescription, getEdgeList, getEdges, getEdgeWeight, getId, getNeighbors, getNodes, getScore, isEdge, isNode, numberOfEdges, numberOfNodes, removeEdge, removeNode, setEdgeDescription, setEdgeWeight, setScore, toString |
Method Detail |
---|
byte getDistance(NodeType nodeA, NodeType nodeB)
nodeA
- From node.nodeB
- To node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |