8
Specifying complex forms
(discuss.tchncs.de)
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
Your question is a bit vague but it looks to me that what you want is some sort of expert system of inference engine.
There might be some open source solutions, and there's always the GNU Prolog language that might suit your needs.
I suspect that you won't get a graphviz structure out of it though.