GP: replaced networkx with pygraphviz