edu.columbia.cs.utils
Class DependencyGraph
java.lang.Object
edu.columbia.cs.utils.SimpleGraph<TokenInformation,java.lang.String>
edu.columbia.cs.utils.DependencyGraph
- All Implemented Interfaces:
- java.io.Serializable
public class DependencyGraph
- extends SimpleGraph<TokenInformation,java.lang.String>
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
DependencyGraph
public DependencyGraph(int numNodes,
double w)
addNode
public void addNode(int pos,
TokenInformation label)
- Overrides:
addNode
in class SimpleGraph<TokenInformation,java.lang.String>
addEdge
public void addEdge(int origin,
int destiny,
java.lang.String label)
- Overrides:
addEdge
in class SimpleGraph<TokenInformation,java.lang.String>
toString
public java.lang.String toString()
- Overrides:
toString
in class SimpleGraph<TokenInformation,java.lang.String>
getInitialProbVector
public double[] getInitialProbVector()
getFinalProbVector
public double[] getFinalProbVector()
getTransitionProb
public double getTransitionProb(int origin,
int dest)
isInShortestPath
public boolean isInShortestPath(int origin,
int dest)
normalizePaths
public void normalizePaths()
getShortestPathEdges
public java.util.List<Pair<Pair<java.lang.Integer,java.lang.Integer>,java.lang.String>> getShortestPathEdges()
getShortestPathDependencyGraph
public DependencyGraph getShortestPathDependencyGraph()
getNotShortestPathDependencyGraph
public DependencyGraph getNotShortestPathDependencyGraph()