|   | 1 |  initial version  | 
Iterators are wonderful.
One of the ways in which they are wonderful is you can grab as many or as few elements as you want.
The iterator for all planar graphs of order 50:
sage: planar_50 = graphs.planar_graphs(50)
Grab the first four:
sage: planar_50_4 = [next(planar_50) for _ in range(4)]
Check:
sage: planar_50_4
[Graph on 50 vertices,
 Graph on 50 vertices,
 Graph on 50 vertices,
 Graph on 50 vertices]
 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.
 
                
                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.