如果存在则emphe的直接父节点emphe必定是emphCau中定义的emphe的起因事件;如果不是返回emphFalse;将事件emphe作为事件emphe重复查找直到emphe的所有父节点处理完毕;将上面文字转换为算法伪代码
function check_causal_chain(e, Cau):
if e has a direct parent node e' and e' is defined in Cau as the cause of e:
repeat until all parent nodes of e are processed:
if e' has a direct parent node e'' and e'' is defined in Cau as the cause of e':
set e' to e''
else:
return False
else:
return False
return True
原文地址: http://www.cveoy.top/t/topic/exEr 著作权归作者所有。请勿转载和采集!