Rik's Treehouse > Babbling in Binary > My Software > Orphanware > R2DToo > R2DToo Help > For the Programmer > nbrhdRandom |
Declaration Parameters Remarks Example See Also | Declarationvoid __stdcall nbrhdRandom( int range, // number of neighbours bool symmetric // whether links are symmetric or not ); Parameters
RemarksThis function is available through the API. It can be called within the model-supplied routine onSimCreate to set the neighbourhood to a random network in which each agent is connected to range other agents (never itself) selected from anywhere on the lattice (non-local).If symmetric=true then all links are reciprocal: a is a neighbour of b if and only if b is a neighbour of a. ExampleSee AlsoonSimCreate, nbrhd1D, nbrhdBlocks, nbrhdCCDM, nbrhdFractal, nbrhdMoore, nbrhdRandomER, nbrhdVonNeumann. |
[Rik's Office Hours] [Contact Rik] Last updated: Fri Apr 30 2004, 1:42pm |