def attractor153_graph(n,p,multiple=3,b=10):
    G=DiGraph()
    for k in range(1,n+1):
        if k%multiple==0 and k not in G:
            k1=k
            knext=powersum(k1,p,b)
            while k1!=knext:
                G.add_edge(k1,knext)
                k1=knext
                knext=powersum(k1,p,b)
    return G
Validates the given app, raising CommandError for any errors.
dataset/ETHPy150Open networkx/networkx/examples/advanced/iterated_dynamical_systems.py/attractor153_graph--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/core/management/base.py/BaseCommand.validate