SDCCA / DGL-PTM

The deep graph library implementation of the poverty trap model
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Network Edge Random add/del Restructure #82

Closed vmgaribay closed 2 months ago

vmgaribay commented 2 months ago

In an effort to reconceptualize the disruptive network dynamics functions of random add/delete edges in a way that fits better with a tensor-based approach, a new noise-inducing function which temporarily bumps the weights of a small proportion of random edges in the network is being instated. The projected flow will be:

-select random node pairs according to a given proportion or probability parameter (possibly without replacement to avoid self links and bidirectional conflicts) -generate random weights (0-1) matching the number of node pairs -create bidirectional edges for any pairs not already connected -set the edge weights according to the generated tensor

-the trading/exchange of capital then occurs

-the number of edges created in the above process are then deleted at random from the network

-the weights are then updated/recalculated before the process repeats(either end of t or beginning of t+1, whichever makes more sense, probably the latter)

vanlankveldthijs commented 2 months ago

Desired process order:

    dl = local_attachment
    weight_update
    dr = random_edge_noise

    trade_money

    link_deletion(dl+dr)

    agent_update
    data_collection
vanlankveldthijs commented 2 months ago

Restrictions guiding above process order:

meiertgrootes commented 2 months ago

this has been implemented and forms part of development