Bio::Graph::SimpleGraph 1.5.2_102 |
Date Added: March 12, 2010 | Visits: 854 |
|
||||||||
Bio::Graph::SimpleGraph is a Perl module that can create and manipulate undirected graphs. SYNOPSIS use Bio::Graph::SimpleGraph; my $graph=new 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 foreach my $node (@nodes) { my @neighbors=$node->neighbors; # get list of neighboring nodes } This is a simple, hopefully fast undirected graph package. 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. The main data structures are: An edge (x,y) is represented canonically as a two element list in which the lexically smaller value is first. Eg, the node (b,a) is represented as [a,b]. The graph contains 1) A hash mapping the text representation of a node to the node itself. This is mostly relevant when the node is a reference. 2) A hash mapping the text representation of a node to a list of the nodes neighbors. 3) A hash mapping the text representation of an edge to the edge itself..
|
License: Freeware | Size: 5.6 MB |
Development Tools
-
Converting a list of equal length lists into XML 1.0
This module takes a list of equal length lists and converts it into XML. If the first sublist is a list of headings, these are used to form the element names of the rest of the data, or these can be defined in the function call. Root and "row"... |
||
Miscellaneous
-
A List of Dictionaries 1.0
This class emulates a list of dictionary objects without the memory and pickle storage overhead which occurs when storing every item in the list as a dictionary. |
||
Miscellaneous
-
Transposing a List of Lists 1.0
This script allows you to transpose a list of lists of different lengths. |
||
Screen Savers
-
To Do - Create Check List Of Things To D 1.0
"To Do - Create Check List Of Things To Do's lets you keep track of important tasks and meetings. Do you have trouble remembering the last time you missed you meeting? Checked your credit score? Cooked tonight? With a simple, clean, and elegant... |
1.3 MB | |
Networking
-
List of references 1.0
Generates a list of links used in a post. This can be used to create a list of references like those in scientific publications. Add [lor] at the end of your post (or wherever you want the list of references) and add a title attribute to all links... |
10 KB | |
Libraries
-
Acme::Hyperindex 0.12
Acme::Hyperindex is a Perl module to look deep into structures using a list of indexes. SYNOPSIS use strict; use Acme::Hyperindex; my @struct = ( { j_psi => [qw( eta_prime phi kaon )] }, { j_psi => [qw( selectron down tau_sneutrino )] },... |
4.1 KB | |
Networking
-
Search for list of name server addresses 1.2
This script contains a function named RegistryResolve() that returns a list of ip numbers (dotted quads), by scouring the registry for addresses of name servers.Program doesn't check whether an interface is up or down. |
||
Networking
-
List of Posts from each Category plugin for WordPress 2.0
List of Posts from each Category plugin for WordPressThis plugin displays a list of the posts from each category of your WordPress installation. It can be added to a post or page, or used directly in a template file. In the plugind¬DSdus... |
10 KB | |
Modules
-
Recent Love - A List of Recent Comments 0.5
Displays a list (typically, in your sidebar) of your visitors' recent comments. By default, shows the latest comment from each of the last five commented-on posts.You control: * how many recent comments to display * how many characters of the post... |
20.48 KB | |
Audio Tools
-
dialog-mp3-list 0.60
dialog-mp3-list generates an organized list of your CDs and directories of MP3s. It shows a numbered list of MP3s with information on their encoding speed and track lengths. It uses Dialog/XDialog and Latex to create lists in .tex, .ps, and .pdf... |
77.82 KB |
Programming
-
Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations. |
471.04 KB | |
Programming
-
Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions. |
30.72 KB | |
Programming
-
Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned... |
30.72 KB | |
Programming
-
logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant... |
174.08 KB | |
Programming
-
OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a... |
3.83 MB | |
Libraries
-
wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating... |
3.88 MB | |
Libraries
-
EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented... |
10.68 MB | |
Libraries
-
Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable. |
5.35 KB | |
Libraries
-
Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;... |
8.19 KB | |
Libraries
-
sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also... |
10.24 KB |