I am trying to generate undirected graphs in pygraphviz but have been unsuccessful. It seems that no matter what I do, the graph always turns out directed.
Example #1
G = pgv.AGraph(directed=False)
G.is_directed() # true
Example #2
G = pgv.AGraph()
G.to_undirected().is_directed() # True
Example #3
G = pgv.AGraph(directed=False)
G.graph_attr.update(directed=False)
G.is_directed() # trueI have no idea why something so trivial could not be working. What I am doing wrong?
I'm using pygraphviz v1.1 I got from https://groups.google.com/d/msg/pygraphviz-discuss/ZG4BqWFRR54/gCRlHgl2O5cJ, graphviz 2.28, python 2.7, and windows-7 x64