| 1 | initial version |
You can do something like:
# compute maximum radius
max_radius = max( g.spectral_radius() for g in graphs.nauty_geng("-c 8 10") )
# get all graphs of interest as a list
my_graphs = [g for g in graphs.nauty_geng("-c 8 10") if g.spectral_radius() == max_radius]
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.