NAME

Graph::Drawing::Base - Base class for graph drawing functionality

SYNOPSIS

#use Graph::Drawing::ForceDirected;       # Not implemented.
#use Graph::Drawing::SimulatedAnnealing;  # Not implemented.
#use Graph::Drawing::Magnetic;            # Not implemented.
#use Graph::Drawing::Heirarchical;        # Not implemented.
#use Graph::Drawing::Orthogonal;          # Not implemented.

use Graph::Drawing::Random;

$g = Graph::Drawing::Random->new(%args);

$g->surface->write_image;

DESCRIPTION

This module is a base class from which the Graph::Drawing subclasses derive common functionality.

This module is a subclass of Graph::Weighted, which in turn is a subclass of Graph::Directed. Thus, every appropriate method available in those modules, is also available to a Graph::Drawing object.

Please see the Graph::Drawing subclass SYNOPSIS sections for usage descriptions.

Please see the distribution eg/ directory for working examples.

ABSTRACT

Base class for graph drawing functionality.

PUBLIC METHODS

surface [%ARGUMENTS]

Return a surface object.

If the method is passed a list of arguments a new Graph::Drawing::Surface object is created. If no arguments are given, the object's surface is returned.

The list of arguments for a new surface object are detailed in the Graph::Drawing::Surface documentation.

vertex $NAME | %ARGUMENTS

Return a vertex object.

If the method is passed a list of arguments a new Graph::Drawing::Vertex object is created. If only one argument is given, the existing vertex with that name is returned.

The list of arguments for a new vertex object are detailed in the Graph::Drawing::Vertex documentation.

PRIVATE METHODS

_debug

This method is inherited from the parent class, Graph::Weighted and like all the other methods there, can be called directly, on a Graph::Drawing object.

SEE ALSO

Graph::Base

Graph::Weighted

Graph::Drawing

Graph::Drawing::Surface

Graph::Drawing::Vertex

Graph::Drawing::Random

TO DO

A little less than everything.

If you would like to contribute to this project, please contact me and I will rejoice.

AUTHOR

Gene Boggs <gene@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2003 by Gene Boggs

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.