Fix wrong neighbors keyword bug: Correct max_depth to hops parameter

- Fixed _find_indirect_decision_influence() to use correct get_neighbors() parameter
- Changed max_depth= to hops= to match method signature
- Fixes analyze_decision_influence(..., include_indirect=True) functionality
- Prevents TypeError that was silently caught and degraded functionality
- Restores indirect decision influence analysis capability
- Ensures reliable decision influence analysis with indirect connections
This commit is contained in:
KaifAhmad1
2026-02-16 18:57:30 +05:30
parent fcf0c684bd
commit fd21ec8c77
+1 -1
View File
@@ -1915,7 +1915,7 @@ class ContextGraph:
influenced = set()
# Get neighbors in graph
neighbors = self.get_neighbors(decision_id, max_depth=max_depth)
neighbors = self.get_neighbors(decision_id, hops=max_depth)
for neighbor in neighbors:
if neighbor.get("type") == "decision":