public interface CostStrategy
Modifier and Type | Method and Description |
---|---|
CostStrategyConfiguration |
getCostConfiguration() |
int |
getTotalCost(EGraph source,
EGraph target,
MatchMapping mapping)
Main cost function.
|
int |
getWeightedCostNoMatch(java.lang.Integer nodeId,
EGraph NodeGraph,
MatchMapping mapping) |
int |
getWeightedCostOfGlobalStructure(java.lang.Integer source,
java.lang.Integer target,
MatchMapping mapping) |
int |
getWeightedCostofMatchedPair(java.lang.Integer sourceId,
java.lang.Integer targetId,
MatchMapping mapping) |
void |
setCostConfiguration(CostStrategyConfiguration config) |
int getTotalCost(EGraph source, EGraph target, MatchMapping mapping)
source
- The nodes of the source graph are the domain of the mappingtarget
- The nodes of the target graph are the range of the mappingmapping
- The COMPLETE mapping between between the nodes of the two graphsvoid setCostConfiguration(CostStrategyConfiguration config)
CostStrategyConfiguration getCostConfiguration()
int getWeightedCostOfGlobalStructure(java.lang.Integer source, java.lang.Integer target, MatchMapping mapping)
int getWeightedCostNoMatch(java.lang.Integer nodeId, EGraph NodeGraph, MatchMapping mapping)
int getWeightedCostofMatchedPair(java.lang.Integer sourceId, java.lang.Integer targetId, MatchMapping mapping)