tnetwork.ComScenario.__init__¶
-
ComScenario.
__init__
(alpha=0.8, external_density_penalty=0.05, random_noise=0, verbose=False, variant='deterministic')[source]¶ Initialize the community generation class
When initializing, we can set the parameters of the link generation
Parameters: - alpha – alpha parameter that determines the density of communities decrease with size
- external_density_penalty – beta, how smaller the density of outside community is compared to a a community of the same size
- random_noise – beta_r, fraction of existing edges that are randomly rewired at each step
- verbose – If true, print debugging information
- variant – the variant of the generator controls the way edges are generated. Currently, only “deterministic” is fully suported