From 71dd202556dbd7deca07f9aff3602c53198ecc8d Mon Sep 17 00:00:00 2001 From: Bryan Andrews Date: Tue, 7 Nov 2023 19:23:26 -0600 Subject: [PATCH] fixed error that was always forbidding all edges within each tier --- tetrad-lib/src/main/java/edu/cmu/tetrad/data/Knowledge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetrad-lib/src/main/java/edu/cmu/tetrad/data/Knowledge.java b/tetrad-lib/src/main/java/edu/cmu/tetrad/data/Knowledge.java index d023bd4dc4..1dbef102a8 100644 --- a/tetrad-lib/src/main/java/edu/cmu/tetrad/data/Knowledge.java +++ b/tetrad-lib/src/main/java/edu/cmu/tetrad/data/Knowledge.java @@ -717,7 +717,7 @@ public List getListOfForbiddenEdges() { } for (int i = this.tierSpecs.size() - 1; i >= 0; i--) { - for (int j = i; j >= 0; j--) { + for (int j = i - 1; j >= 0; j--) { Set tieri = this.tierSpecs.get(i); Set tierj = this.tierSpecs.get(j);