Graph::Writer::DSM(3pm)

Graph::Writer::DSM3pm

Draw graph as a dsm matrix

Usage

    use Graph;
    use Graph::Writer::DSM;
    my $graph = Graph->new();
    my $writer = Graph::Writer::DSM->new(%OPTIONS);
    $writer->write_graph($graph, "output.png");

Version

version 0.008

Overview

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>.

Methods

new()

Like Graph::Writer::GraphViz, this module provide some extra parameters to new() method.

    $writer = Graph::Writer::DSM->new(color => 'red');

Supported parameters are:

pointsize

Default: 0.2.

color

Default: 'blue'.

tics_label

Default: false.

write_graph()

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.

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9
  3. 10–11
  4. 12–13

From libgraph-writer-dsm-perl 0.008-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.