A directed graph representation for computer simulation of belief systems