nct.networkblast.score
Interface ScoreModel<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>

All Known Implementing Classes:
LogLikelihoodScoreModel, SimpleEdgeScoreModel, SimpleScoreModel

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 scoreNode(NodeType node, Graph<NodeType,WeightType> g)
          Given a node from graph, this function will return the score of the node.
 

Method Detail

scoreEdge

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.

Parameters:
srcNode - Source node of edge to score.
destNode - Dest node of edge to score.
g - The graph that contains the edge to score.
Returns:
The score for the given pair of nodes in the given graph.

scoreNode

double scoreNode(NodeType node,
                 Graph<NodeType,WeightType> g)
Given a node from graph, this function will return the score of the node.

Parameters:
node - Node to score.
g - The graph that contains the node to score.
Returns:
The score for the node in the given graph.