NAME
SNA::Network::Generator::ByDensity - Generate random networks by density
SYNOPSIS
use SNA::Network;
my $net = SNA::Network->new();
$net->generate_by_density( nodes => 100, density => 0.05);
# or
$net->generate_by_density( nodes => 100, edges => 445);
...
METHODS
The following methods are added to SNA::Network.
generate_by_density
Generates a network with the given number of nodes and the given density OR number of edges. The network is not guaranteed to have the resulting number of edges, but it it stochasticly expected to have them. Expected Degrees are the same for all nodes.
AUTHOR
Darko Obradovic, <dobradovic at gmx.de>
BUGS
Please report any bugs or feature requests to bug-sna-network-node at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SNA-Network. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc SNA::Network
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2009 Darko Obradovic, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.