BioGraph::Operation
use BioGraph::Operation;
Package for manipulate graphs represented as well as adjacent matrix or adjacent list. Library for graph operations such as copy, modification, ...
This is the list of the differents functions implemented in this library.
Copy a graph.
SYNOPSIS %T=copy_graph(representation, graph)
PARAMETERS
the type of representation choosen : 1 = adjacent matrix, and 2 = adjacent list
the hash table of the graph
OUTPUT The copied graph (you can use directly %T2=%T instead of this function but in this case, the modifications on %T will affect %T2).
Cut an edge of the graph
SYNOPSIS %G=cut_edge(representation, vertex_start, vertex_end, graph)
start vertex
end vertex ('start - end' is an edge)
OUTPUT The graph without the edge 'start - end'
Cut a vertex of the graph
SYNOPSIS %G=cut_vertex(representation, vertex_to_cut, graph)
the vertex to cut
OUTPUT The graph without the vertex 'vertex_to_cut'
Compute the symetric graph Gs associated to G
SYNOPSIS %Gs=symetric(representation, graph)
OUTPUT The symetrised graph associated to G (called Gs)
Compute the number connected components of a graph and if selected, create them
SYNOPSIS $N=compute_CC(representation, create_file, file_name, graph)
enable (or not) the creation of a file for each connected component : 0 = disable, 1 = enable
basename of the files (ex: graph => graph_CCx.gr) ; if create_file=0, then indicate "" (or everything else) as file_name
OUTPUT The number of connected components and if selected, the files of the CC in format graph (.gr).
Graph::Operation is Copyright (C) 2004, Tristan Colombo CNRS - LCB, 31 chemin Joseph Aiguier 13009 Marseille France Email: tristan.colombo@ibsm.cnrs-mrs.fr All rights reserved. You may distribute this package under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
To install BioGraph::Random, copy and paste the appropriate command in to your terminal.
cpanm
cpanm BioGraph::Random
CPAN shell
perl -MCPAN -e shell install BioGraph::Random
For more information on module installation, please visit the detailed CPAN module installation guide.