LabelType
- The type for labels assigned to nodesNodeNameType
- The type for names of nodespublic static interface GraphWrappingEnergyFunction.PotentialHandler<LabelType,NodeNameType>
Modifier and Type | Method and Description |
---|---|
double |
getPairwisePotential(DirectedNodeEdgeGraph<NodeNameType> graph,
int edgeId,
LabelType ilabel,
LabelType jlabel)
Provide the pairwise potential for the specified edge
|
java.util.List<LabelType> |
getPossibleLabels(DirectedNodeEdgeGraph<NodeNameType> graph,
int nodeId)
Get the possible labels for the specified node
|
double |
getUnaryPotential(DirectedNodeEdgeGraph<NodeNameType> graph,
int i,
LabelType label,
LabelType assignedLabel)
Provide the unary potential for the specified node
|
double getPairwisePotential(DirectedNodeEdgeGraph<NodeNameType> graph, int edgeId, LabelType ilabel, LabelType jlabel)
graph
- The graph the edge is fromedgeId
- The id of the edge whose potential is wantedilabel
- The label being considered for the first node on the
edgejlabel
- The label being considered for the second node on the
edgedouble getUnaryPotential(DirectedNodeEdgeGraph<NodeNameType> graph, int i, LabelType label, LabelType assignedLabel)
graph
- The graph the node is fromi
- The id of the node whose potential is wantedlabel
- The label being considered for the nodeassignedLabel
- the label assigned to the node (null if none
assigned via setLabel)java.util.List<LabelType> getPossibleLabels(DirectedNodeEdgeGraph<NodeNameType> graph, int nodeId)
graph
- The graph the node is fromnodeId
- The id of the node in the graph