@not_implemented_for('directed', 'multigraph')
def is_strongly_regular(G):
 return (is_distance_regular(G) and (diameter(G) == 2))

@ not_implemented_for ( 'directed' , 'multigraph' ) def is_strongly_regular ( G ) : return ( is_distance_regular ( G ) and ( diameter ( G ) == 2 ) )
returns true if and only if the given graph is strongly regular .