|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScoreModel<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>
This interface will provide the scoring interface for all scoring algorithms to be used on a Graph object. Consequently, all scoring algorithms should implement this interface.
| Method Summary | |
|---|---|
double |
scoreEdge(NodeType srcNode,
NodeType destNode,
Graph<NodeType,WeightType> g)
Given a sourceNode and destNode from a graph, this method will return the score of the edge. |
double |
scoreGraph(Graph<NodeType,WeightType> g)
|
double |
scoreNode(NodeType node,
Graph<NodeType,WeightType> g)
Given a node from graph, this function will return the score of the node. |
| Method Detail |
|---|
double scoreEdge(NodeType srcNode,
NodeType destNode,
Graph<NodeType,WeightType> g)
srcNode - Source node of edge to score.destNode - Dest node of edge to score.g - The graph that contains the edge to score.
double scoreNode(NodeType node,
Graph<NodeType,WeightType> g)
node - Node to score.g - The graph that contains the node to score.
double scoreGraph(Graph<NodeType,WeightType> g)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||