This question is related to making inferences from a complex graphical model. Graph databases are used to store and query the relationship between nodes in a graph. We need an open-source graph DB API to write our own probabilistic graphical models which we want to code our own inference engine.