|
|
@ -85,7 +85,7 @@ public class StrongConnectivityHelper { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static boolean isExitComponent(List<Statement> lst) { |
|
|
|
public static boolean isExitComponent(List<? extends Statement> lst) { |
|
|
|
Set<Statement> set = new HashSet<>(); |
|
|
|
Set<Statement> set = new HashSet<>(); |
|
|
|
for (Statement stat : lst) { |
|
|
|
for (Statement stat : lst) { |
|
|
|
set.addAll(stat.getNeighbours(StatEdge.TYPE_REGULAR, Statement.DIRECTION_FORWARD)); |
|
|
|
set.addAll(stat.getNeighbours(StatEdge.TYPE_REGULAR, Statement.DIRECTION_FORWARD)); |
|
|
@ -95,7 +95,7 @@ public class StrongConnectivityHelper { |
|
|
|
return (set.size() == 0); |
|
|
|
return (set.size() == 0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static List<Statement> getExitReps(List<List<Statement>> lst) { |
|
|
|
public static List<Statement> getExitReps(List<? extends List<Statement>> lst) { |
|
|
|
List<Statement> res = new ArrayList<>(); |
|
|
|
List<Statement> res = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
for (List<Statement> comp : lst) { |
|
|
|
for (List<Statement> comp : lst) { |
|
|
|