Your example should work. You can see what global attributes are
being set by converting to a pygraphviz (graphviz agraph) data
structure and inspecting the results:
In [1]: import networkx as nx
In [2]: G = nx.Graph([(1,2)])
In [3]: A = nx.to_agraph(G)
In [4]: A.layout(args="-Goverlap=false -Gsize=12,12!" )
In [5]: print A
strict graph {
graph [bb="0,0,127.21,49.639",
overlap=false,
size="12,12!"
];
node [label="\N"];
1 [height="0.51389",
pos="28,30.139",
width="0.75"];
2 [height="0.51389",
pos="99.21,19.5",
width="0.75"];
1 -- 2 [pos="54.516,26.177 60.368,25.303 66.572,24.376 72.434,23.5"];
}
Aric