def fixed_points(G):
 return [n for n in G if (G.out_degree(n) == 0)]

def fixed_points ( G ) : return [ n for n in G if ( G . out_degree ( n ) == 0 ) ]
return a list of fixed points for the discrete dynamical system represented by the digraph g .