Graph::Maker::Uniform

Graph::Maker::Uniform is a Perl module that creates a graph distributed randomly over the d-dimensional grid.
Download

Graph::Maker::Uniform Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Matt Spear
  • Publisher web site:
  • http://search.cpan.org/~batz/Graph-Maker-0.02/lib/Graph/Maker/Uniform.pm

Graph::Maker::Uniform Tags


Graph::Maker::Uniform Description

Graph::Maker::Uniform is a Perl module that creates a graph distributed randomly over the d-dimensional grid. Graph::Maker::Uniform is a Perl module that creates a graph distributed randomly over the d-dimensional grid.SYNOPSISCreates a uniform graph with nodes distributed randomly over dims-dimensional unit cube. A uniform graph distributes nodes randomly (generally uniformally) over a unit cube in some number of dimensions, where nodes are connected iff they are with rad units of distnace of eachother and no nodes are within repel distance of eachother. If the graph is directed then edges are added in both directions to create an undirected graph. use strict; use warnings; use Graph; use Graph::Maker; use Graph::Maker::Uniform; use Math::Random qw/random_normal/; my (@a, @b); @a = (2); @b = (1,1); $g = new Graph::Maker('uniform', N => 100, radius => 0.1, undirected => 1); @a = (2,3,1,2,1); @b = (2,2,1,3,1); $g2 = new Graph::Maker('uniform', N => 100, rad => 0.15, dims => 3, repel => 0.01, random => sub { random_normal($_, 0, 0.5) } ); # make the nodes distributed over the cube with a gaussian (normal) distribution # work with the graph Requirements: · Perl


Graph::Maker::Uniform Related Software