Class WeightedCycleCountInconsistencyMeasure<T extends DungTheory>

java.lang.Object
org.tweetyproject.arg.dung.analysis.WeightedCycleCountInconsistencyMeasure<T>
Type Parameters:
T - the type of Dung theories used, extending DungTheory
All Implemented Interfaces:
InconsistencyMeasure<T>

public class WeightedCycleCountInconsistencyMeasure<T extends DungTheory> extends Object implements InconsistencyMeasure<T>
This class provides an inconsistency measure for Dung's argumentation frameworks based on the count and structure of cycles within the framework. Each cycle's contribution to the inconsistency is inversely proportional to its size.
Author:
Timothy Gillespie
  • Constructor Details

    • WeightedCycleCountInconsistencyMeasure

      public WeightedCycleCountInconsistencyMeasure()
  • Method Details

    • inconsistencyMeasure

      public Double inconsistencyMeasure(T argumentationFramework)
      Calculates the inconsistency measure of a given Dung theory argumentation framework by evaluating the cycles within the framework. Each cycle contributes inversely to its size to the total inconsistency measure. The function first identifies all cycles, including self-loops, filters them to ensure uniqueness, and then sums the weighted contributions of each distinct cycle.
      Specified by:
      inconsistencyMeasure in interface InconsistencyMeasure<T extends DungTheory>
      Parameters:
      argumentationFramework - the Dung theory argumentation framework to measure for inconsistency
      Returns:
      Double the calculated inconsistency measure, where smaller cycles increase the inconsistency score more significantly