Ask Your Question

Revision history [back]

click to hide/show revision 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]