rand_poisson

rand_poisson(nnodes, ncontacts, lam=1, nettype='bu', netinfo=None, netrep='graphlet')[source]

Generate a random network where intervals between contacts are distributed by a poisson distribution

Parameters:
  • nnodes (int) – Number of nodes in networks
  • ncontacts (int or list) – Number of expected contacts (i.e. edges). If list, number of contacts for each node. Any zeros drawn are ignored so returned degree of network can be smaller than ncontacts.
  • lam (int or list) – Expectation of interval.
  • nettype (str) – ‘bu’ or ‘bd’
  • netinfo (dict) – Dictionary of additional information
  • netrep (str) – How the output should be.
  • ncontacts is a list, so should lam. (If) –
Returns:

net – Random network with intervals between active edges being Poisson distributed.

Return type:

array or dict