Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Errors while executing codes after importing pygraphviz

$
0
0

@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 Graph

Thanks

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles