Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Graph::Maker::Uniform 0.02

    Download button

    No screenshots available
    Downloads: 642  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    14 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Matt Spear | More programs
    Perl Artistic License / FREE
    June 12th, 2008, 11:16 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Graph::Maker::Uniform description

    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.

    SYNOPSIS

    Creates 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, 0.5) }
    ); # make the nodes distributed over the cube with a gaussian (normal) distribution
    # work with the graph


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    d-dimensional grid | graph maker | Perl module | d-dimensional | grid | graph

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM