Graph::Writer::DSM - draw graph as a DSM matrix
version 0.008
Write graph as a quadractic matrix N x N, where N is the number of vertices in the graph. It is useful to visualize graphs with at least 1k vertices.
See more about DSM: http://en.wikipedia.org/wiki/Design_structure_matrix.
use Graph; use Graph::Writer::DSM; my $graph = Graph->new(); my $writer = Graph::Writer::DSM->new(%OPTIONS); $writer->write_graph($graph, "output.png");
Like Graph::Writer::GraphViz, this module provide some extra parameters to new() method.
$writer = Graph::Writer::DSM->new(color => 'red');
Supported parameters are:
Default: 0.2.
Default: 'blue'.
Default: false.
Write a specific graph to a named file:
$writer->write_graph($graph, $file);
The $file argument can either be a filename, or a filehandle for a previously opened file.
Graph, Graph::Writer, Chart::Gnuplot.
Copyright (c) 2013, Joenio Costa
To install Graph::Writer::DSM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Graph::Writer::DSM
CPAN shell
perl -MCPAN -e shell install Graph::Writer::DSM
For more information on module installation, please visit the detailed CPAN module installation guide.