Skip to content
Snippets Groups Projects
Commit d54e19b5 authored by Carlos Galindo's avatar Carlos Galindo
Browse files

Test new version of subsumption.

parent 98dff65a
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ public class ConstrainedSubsumedTabularAlgorithm extends ConstrainedTabularAlgor
protected void propagate(Work work) {
if (!pathEdge.contains(work)) {
if (work.current().stack().isEdgeConstraintsEmpty() || pathEdge.stream().noneMatch(work::isSubsumedBy)) {
workList.removeIf(w -> w.isSubsumedBy(work));
pathEdge.add(work);
workList.add(work);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment