2

I am currently working on a project where I have to deal with Bayesian Networks and given the graphical nature of these probabilistic models, it is very essential to visualize them as a graph. I am using pgmpy for my project.

The model I am dealing with has a large number of variables, often having long names as data identifiers. I therefore was contemplating on illustrating the graph with a legend and each node having a 'code' or a 'number', mapping to a data identifier (perhaps a dict could be used).

The edges I have are in the following format:

[('A','B'), ('B', 'C'), ('C','A')]

In other words, an array of 2-tuples of strings.

It would be great if someone could help me in solving this particular issue.

Danish A. Alvi
  • 139
  • 1
  • 8
  • 1
    https://stackoverflow.com/questions/28533111/plotting-networkx-graph-with-node-labels-defaulting-to-node-name/28533293#28533293 may answer some of your questions... – Joel Apr 22 '18 at 22:19

0 Answers0