@shan4224 wrote:
I was going throug the wonderful article, https://www.analyticsvidhya.com/blog/2018/04/introduction-to-graph-theory-network-analysis-python-codes/.
I have installed graphviz and pygraphviz . Packages are showing up in pip freeze.
But am getting errors while executing following codes.import pygraphviz as pgv
d={‘1’: {‘2’: None}, ‘2’: {‘1’: None, ‘3’: None}, ‘3’: {‘1’: None}}
A = pgv.AGraph(data=d)
print(A) # This is the ‘string’ or simple representation of the GraphThanks
Posts: 2
Participants: 2