Skip to content

Commit ed0fff8

Browse files
committed
bugfix sequence explanations
1 parent de8fe36 commit ed0fff8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

org-tweetyproject-arg-dung/src/main/java/org/tweetyproject/arg/dung/serialisability/semantics/SerialisationSequence.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public Extension<DungTheory> getExtension() {
8787

8888
@Override
8989
public int size() {
90-
return arguments.size();
90+
return sequence.size();
9191
}
9292

9393
@Override

org-tweetyproject-arg-explanations/src/main/java/org/tweetyproject/arg/explanations/reasoner/acceptance/DialecticalSequenceExplanationReasoner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public Collection<Explanation> getExplanations(DungTheory theory, Argument argum
6767
private Collection<Argument> getDefeated(DungTheory theory, SerialisationSequence seq, Argument a, Collection<Argument> s) {
6868
Collection<Argument> relevantAttackers = new HashSet<>();
6969
relevantAttackers.addAll(theory.getAttackers(a));
70-
relevantAttackers.addAll(seq.getExtension());
70+
relevantAttackers.addAll(theory.getAttackers(seq.getExtension()));
7171
DungTheory reduct = theory.getReduct(new SerialisationSequence(seq.subList(0, seq.indexOf(s))).getExtension());
7272
Collection<Argument> attacked = new HashSet<>(reduct.getAttacked(s));
7373
relevantAttackers.retainAll(attacked);

0 commit comments

Comments
 (0)