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.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Bio::ConnectDots::SimpleGraph 1.0.2

    Download button

    No screenshots available
    Downloads: 317  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Nat Goodman | More programs
    Perl Artistic License / FREE
    February 21st, 2007, 19:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Bio::ConnectDots::SimpleGraph description

    A simple, hopefully fast undirected graph package.

    Bio::ConnectDots::SimpleGraph is a simple, hopefully fast undirected graph package.

    SYNOPSIS

    use SimpleGraph;

    my $graph=new Bio::ConnectDots::SimpleGraph;
    # read pairs of nodes from STDIN
    while () {
    my($node1,$node2)=split;
    $graph->add_edge($node1,$node2);
    }
    my @nodes=graph->nodes; # get list of nodes
    my @edges=graph->edges; # get list of edges
    for each $node (@nodes) {
    my @neighbors=$node->neighbors; # get list of neighboring nodes
    }

    The only reason this exists is that the standard CPAN Graph pacakge, Graph::Base, is seriously broken. The package implements a small and eclectic assortment of standard graph algorithms that we happened to need for our applications.
    This module is a subclass of Class::AutoClass (available at CPAN). AutoClass auotgenerates simple accessor and mutator methods (aka get and set methods). It also automates class initialization.

    Nodes can be any Perl values, including object references. Edges are pairs of nodes.

    (Caveat: be careful with values that contain embedded instances of $; (the character Perl uses to separate components of multi-dimensional subscripts), because we use this in the text representation of edges.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    undirected graph | ConnectDots graph | Perl module | Bio | undirected | graph

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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