pydot instead of networkx