| 1 | initial version |
You need to adjust the size of the output picture; you can do this with the figsize keyword:
sage: n = 5
sage: node = {}
sage: node[''] = [str(x) for x in range(n)]
sage: for x in range(n):
... node[str(x)] = [str(x) + str(y) for y in range(n)]
...
sage: g = Graph(node)
sage: P = g.plot(layout='tree', tree_root='')
sage: P.show(figsize=[10,10])
For larger graphs, you'll probably need to use an even larger figsize, determined by the number of leaves on the bottom row.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.