Modifier and Type | Field and Description |
---|---|
protected org.jgrapht.graph.SimpleDirectedWeightedGraph<Node,org.jgrapht.graph.DefaultWeightedEdge> |
graph |
protected boolean |
negativeWeights |
Constructor and Description |
---|
ShortestPathInference() |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(Node s,
Node t,
double score) |
void |
addNode(Node node,
double score) |
protected Double |
getNodeScore(Node t) |
List<Node> |
getShortestPath() |
List<Node> |
runInference() |
void |
setSource(Node source) |
void |
setTarget(Node target) |
void |
updateEdgeWeight(Node s,
Node t,
double score) |
protected org.jgrapht.graph.SimpleDirectedWeightedGraph<Node,org.jgrapht.graph.DefaultWeightedEdge> graph
protected boolean negativeWeights
Copyright © 2017. All rights reserved.