nct.networkblast.graph.compatibility
Interface CompatibilityCalculator
- All Known Implementing Classes:
- AdditiveCompatibilityCalculator
public interface CompatibilityCalculator
Provides an interface for alternative methods of determining
which potential compatibility nodes should be included in the
compatibility graph and how the edge scores between the nodes
are calculated.
Method Summary |
boolean |
calculate(Graph<java.lang.String,java.lang.Double> compatGraph,
java.util.List<? extends DistanceGraph<java.lang.String,java.lang.Double>> partitionGraphs,
java.lang.String[] nodeBase,
java.lang.String[] nodeBranch)
The method that determines which nodes to add, adds them
if appropriate, and calculates the edge score. |
calculate
boolean calculate(Graph<java.lang.String,java.lang.Double> compatGraph,
java.util.List<? extends DistanceGraph<java.lang.String,java.lang.Double>> partitionGraphs,
java.lang.String[] nodeBase,
java.lang.String[] nodeBranch)
- The method that determines which nodes to add, adds them
if appropriate, and calculates the edge score.
- Parameters:
compatGraph
- The compatibility graph that appropriate
compatibility nodes and edges are added to.partitionGraphs
- Possibly used tonodeBase
- An array of nodes from the respective
partition graphs that form a potential compatibility node.nodeBranch
- An array of nodes from the respective
partition graphs that form a potential compatibility node.