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 
dataset/ETHPy150Open networkx/networkx/examples/advanced/iterated_dynamical_systems.py/fixed_points