public class CycleGraph extends Object
Constructor and Description |
---|
CycleGraph(List<String> outList)
Creates a cycle
|
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
AbstractStateSet succs)
Adds a set of successor states from a state within the cycle
|
double[] |
getExitProbs(String state,
int approxDepth)
Computes the exit probabilities associated with the given state
|
String |
toString() |
public void add(String key, AbstractStateSet succs)
key
- the identifier of the state in the cyclesuccs
- the set of successor states accessible from the given statepublic double[] getExitProbs(String state, int approxDepth)
key
- identifier of the state to compute the exit probabilitiesapproxDepth
- the maximum depth of the search (if no exit is found up to this depth, exploration continues without revisiting paths)Copyright © 2005–2020. All rights reserved.