Class PathExtractor
- java.lang.Object
-
- it.unive.tarsis.automata.algorithms.PathExtractor
-
public class PathExtractor extends java.lang.ObjectAn algorithm that extracts paths from an automaton.
-
-
Constructor Summary
Constructors Constructor Description PathExtractor(Automaton a)Builds the extractor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.List<State>>getAllPaths()Yields all possible paths going from an initial state to a final state in the target automaton.java.util.List<State>minimumDijkstra(State src, State target)Finds the minimum path between the two given states using the Dijkstra algorithm.
-
-
-
Constructor Detail
-
PathExtractor
public PathExtractor(Automaton a)
Builds the extractor.- Parameters:
a- the automaton
-
-
Method Detail
-
getAllPaths
public java.util.Set<java.util.List<State>> getAllPaths()
Yields all possible paths going from an initial state to a final state in the target automaton. Note that each node of an SCC of the automaton will appear at most once in each path.- Returns:
- the set of all possible paths
-
-